How To Embed Facebook Posts into Drupal CMS

Updated: 19 August, 2016 seen 1,627

OK, I just need to finish this article as it has been in drafts section since November 2013 (Have no clue why I haven't finished it for so long). It's a good idea to finish your drafts once in a while.

I believe embedding a Facebook post is not the most desired feature (Twitter status might be), at least I haven't found many embedded Facebook posts around, but that doesn't mean, you cannot embed one.

Bellow is an example for one of my Facebook posts embedded in Drupal using simplest way - iframe:

Embedded Posts are a simple way to put public posts - by a Page or a person on Facebook - into the content of your web site or web page. Only public posts from Facebook Pages and profiles can be embedded.

Getting your Code from a Post

  • Navigate to your Post

You can get the embed code directly from the post itself. If the post is public, click on the icon that appears in the top right corner of the post on Facebook.

Choose Embed Post from the drop down menu:

Embed Facebook post

Embed Facebook post

  • Copy and Paste Code

You will see a dialog appear with the code to embed your post in it. Copy and paste this code into your web page in the place where you want it to appear.

Learn more ways for embedding Facebook posts at Developer Center: Embedded Posts

If you are using Drupal, one thing you should check is that your text editor supports iframe tag, learn more How To Setup CKEDITOR For Drupal Website