Embedding Facebook Posts on Your Website

To embed a Facebook post on your website, you can follow these steps:

  1. Go to the Facebook post that you want to embed.
  2. Click the three dots in the top right corner of the post.
  3. Select “Embed post”.
  4. Copy the embed code.
  5. Paste the embed code into your website where you want the post to appear.
  6. Save your changes and publish your website.

Here is an example of how to embed a Facebook post in HTML:


<iframe src="https://www.facebook.com/plugins/post/embed.php?href=https://www.facebook.com/facebook/posts/10158561202011071&show_text=true&width=500" width="500" height="400" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>

You can customize the appearance of the embedded post by editing the width and height attributes of the iframe element. You can also add additional parameters to the iframe element to control the behavior of the embedded post, such as whether or not to show the post’s comments or likes.

For more information on embedding Facebook posts, please see the Facebook documentation: https://developers.facebook.com/docs/plugins/embedded-posts/.

Here are some additional tips for embedding Facebook posts on your website:

  • Only embed posts from public Facebook pages or groups. Posts from private pages or groups will not be visible to visitors to your website.
  • Make sure that the embed code is properly formatted. If the code is not formatted correctly, the post will not embed properly.
  • Test the embedded post on different devices and browsers to make sure that it is displayed correctly.
  • Consider using a WordPress plugin or other third-party tool to embed Facebook posts on your website. These tools can make it easier to embed posts and customize their appearance.