Family Encyclopedia >> Electronics

How to embed Facebook status posts in WordPress

Previously on WPBeginner, we showed you how to insert tweets into your WordPress post. Facebook recently announced the ability to embed Facebook status posts anywhere on the web. In this article, we will show you how to embed Facebook statuses in your WordPress posts and pages.

What kind of Facebook status posts can you embed??

You can embed any publicly available Facebook status post on any Facebook page or profile. Posts that are publicly available have a globe icon next to them. For example, visit the WPBeginner Facebook page and you will see the globe icon next to our status posts like this:

How to embed Facebook status posts in WordPress

Clicking on the date or time link will open that particular status update. Copy the URL of the Facebook status you want to embed because you'll need it in the next steps.

There are two ways to integrate Facebook statuses in WordPress.

Using the Facebook Plugin for WordPress

The easiest way to integrate Facebook statuses into your WordPress posts or pages is by installing and activating the official Facebook plugin for WordPress. After activating the plugin, simply go to the post and paste the URL of the Facebook status you want to embed into its own line.

Save your post and preview it. You will be able to see the Facebook status included in your post.

How to embed Facebook status posts in WordPress

Manually embed a Facebook status in WordPress

If you don't want to use the Facebook plugin, you can manually embed Facebook status posts in WordPress. However, this solution is not as neat as using the official plugin.

The first thing you need to do is get the URL of the public post you want to embed. Go to the Embedded Posts page on the Facebook Developers site. Paste the Facebook status URL and hit the get code button.

How to embed Facebook status posts in WordPress

A popup will appear with two options to choose from. The first option is to add the HTML5 code. Copy the first code snippet and paste it into your theme's header.php file just below the . You'll only have to paste this once.

How to embed Facebook status posts in WordPress

After that, simply copy the second code and paste it where you want to embed the post status in your WordPress post or page.

By default, WordPress has built-in support for various oEmbed providers like Twitter, Youtube, etc. We hope that Facebook will enable the oEmbed protocol to make this easier in the future.

We hope this article has helped you to embed Facebook status posts in WordPress. Take a look at some of our Facebook articles:how to add a Facebook fan box, like a button and recommendation bar.

Would you insert Facebook status into your WordPress posts? Let us know by leaving a comment below.