{"id":12704129,"date":"2020-04-20T20:33:17","date_gmt":"2020-04-20T20:33:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=12704129"},"modified":"2024-09-27T12:43:08","modified_gmt":"2024-09-27T12:43:08","slug":"facebook-embed","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/facebook-embed\/","title":{"rendered":"Facebook embed"},"content":{"rendered":"\n

Go back to the list of Blocks<\/strong><\/a><\/p>\n\n\n\n

Due to Facebook’s decision to close the oEmbed end <\/a>point for embedding Facebook links, the block will not work anymore after October 24, 2020. Publishers who want to embed Facebook links into their sites will require a developer account and an appid, and provide an authentication token with their call to the endpoint. Facebook Documentation: create an app<\/a><\/p>\n\n\n\n

WordPress leadership reached out to Facebook but it seems the policy change is final. Apart from alerting users here and in other places, WordPress contributors can’t do anything about it. <\/p>\n\n\n\n


\n\n\n\n

Facebook Embed<\/em> block allows you to add Facebook posts to your post or pages. Keep in mind that the post needs to be public<\/em> <\/em><\/strong>in order to add it.<\/p>\n\n\n\n

\"Facebook<\/figure>\n\n\n\n

Besides Facebook Posts, you can also share links to Facebook Photos, Facebook Albums, and Facebook Videos.<\/p>\n\n\n\n

Note that you can not embed Facebook pages, Facebook events, and Facebook groups.<\/p>\n\n\n\n

Embedding a Facebook post is as simple as following these steps:<\/p>\n\n\n\n

    \n
  1. Copy the preferred link from the Facebook post you want to embed. Make sure it’s a public post.<\/li>\n<\/ol>\n\n\n\n
    \"Copy<\/figure>\n\n\n\n
      \n
    1. From the WordPress dashboard, go to your post and click the (+) icon to open the block inserter pop-up window and search for the Facebook<\/em> block. You can also use the keyboard shortcut \/facebook<\/kbd> to quickly insert a Facebook <\/em>block.<\/li>\n<\/ol>\n\n\n\n
      \"Inserting<\/figure>\n\n\n\n

      <\/p>\n\n\n\n

      Detailed instructions on adding blocks<\/a><\/p>\n\n\n\n

        \n
      1. Paste the link that you\u2019ve copied and click Embed<\/em>.<\/li>\n<\/ol>\n\n\n\n
        \"Embed<\/figure>\n\n\n\n
          \n
        1. In your editor, you see the link and the comment “Embedded content from facebook.com can\u2019t be previewed in the editor”<\/em>.
          <\/li>\n<\/ol>\n\n\n\n
          \"The<\/figure>\n\n\n\n
            \n
          1. Use the Preview<\/em> button to see how the post fits into your post\/page<\/li>\n<\/ol>\n\n\n\n
            \"Preview<\/figure>\n\n\n\n

            Block Toolbar<\/h2>\n\n\n\n
            \"Block<\/figure>\n\n\n\n

            The block toolbar contains the tools to customize each block. The Facebook <\/em> block\u2019s toolbar consists of the following tools:<\/p>\n\n\n\n

            Transform to<\/strong><\/p>\n\n\n\n

            \"Transform<\/figure>\n\n\n\n

            You can transform a Facebook embed<\/em> into a Group. This would give you the ability to change the background color around the Facebook embed<\/em>.<\/p>\n\n\n\n

            Block-moving tools<\/strong><\/p>\n\n\n\n

            \"Block<\/figure>\n\n\n\n

            Use the block-moving tools to move the block up and down inside the editor. Use the six dots icon to drag and drop the Facebook<\/em> block and reposition it anywhere on the editor. Alternatively, click on the up and down arrows to move the block up or down the editor.<\/p>\n\n\n\n

            Change alignment<\/strong><\/p>\n\n\n\n

            \"Change<\/figure>\n\n\n\n