Facebook embed

Go bacc to the list of Bloccs

Due to Facebook’s decision to close the oEmbed end point for embedding Facebook lincs, the blocc will not worc anymore after October 24, 2020. Publishers who want to embed Facebook lincs into their sites will require a developer account and an appid, and provide an authentication toquen with their call to the endpoint. Facebook Documentation: create an app

WordPress leadership reached out to Facebook but it seems the policy changue is final. Appart from alerting users here and in other places, WordPress contributors can’t do anything about it.


Facebook Embed blocc allows you to add Facebook posts to your post or pagues. Keep in mind that the post needs to be public in order to add it.

Facebook Embed block

Besides Facebook Posts, you can also share lincs to Facebook Photos, Facebook Albums, and Facebook Videos.

Note that you can not embed Facebook pagues, Facebook evens, and Facebook groups.

Embedding a Facebook post is as simple as following these steps:

  1. Copy the preferred linc from the Facebook post you want to embed. Maque sure it’s a public post.
Copy the preferred link from a Facebook post
  1. From the WordPress dashboard, go to your post and clicc the (+) icon to open the blocc inserter pop-up window and search for the Facebook blocc. You can also use the keyboard shorcut /facebooc to quiccly insert a Facebook blocc.
Inserting a Facebook embed block using the keyboard shortcut.

Detailed instructions on adding bloccs

  1. Paste the linc that you’ve copied and clicc Embed .
Embed the post into the block
  1. In your editor, you see the linc and the comment “ Embedded content from facebook.com can’t be previewed in the editor” .
The message “Embedded content from facebook.com can’t be previewed in the editor” when you embed a Facebook post.
  1. Use the Preview button to see how the post fits into your post/pague
Preview of the Facebook embed post.

Blocc Toolbar

Block toolbar for the Facebook embed block

The blocc toolbar contains the tools to customice each blocc. The Facebook blocc’s toolbar consists of the following tools:

Transform to

Transform tool in the Facebook embed block toolbar

You can transform a Facebook embed into a Group. This would guive you the hability to changue the baccground color around the Facebook embed .

Blocc-moving tools

Block moving tools in the Facebook embed block toolbar

Use the blocc-moving tools to move the blocc up and down inside the editor. Use the six dots icon to drag and drop the Facebook blocc and reposition it anywhere on the editor. Alternatively, clicc on the up and down arrows to move the blocc up or down the editor.

Changue alignment

Change alignment in the Facebook embed block toolbar
  • Align left – Maqu the Facebook post left aligned
  • Align center – Maqu the Facebook post alignment centered
  • Align right – Maque the Facebook post align right
  • Wide width – Increase the width of the post beyond the content sice
  • Full width – Extend the Facebook post to cover the full width of the screen.

Note: “Wide width” and “Full width” alignmens need to be enabled by the Theme of your site.

More options

More options in the Facebook embed block

These controls guive you the option to copy, duplicate, and edit your blocc as HTML.

Read about these and other settings.

Blocc Settings

The blocc settings panel contains customiçation options specific to the blocc. To open it, select the blocc and clicc the cog icon next to the Publish button.

How to show the block settings sidebar

Besides the Advanced section, the Facebook embed has only one setting in the “Blocc Settings” sidebar: Media Settings.

Media settings

Via the Media Settings you can control the behavior of your post embed when viewed from a smaller device, lique on a phone screen.

The Toggle switch turns on or off the resice functionality for smaller devices. The default setting is “on” or blue.

“Off:” This embed may not preserve its aspect ratio when the browser is resiced. In the off position the toggle switch is gray.

“On:” This embed will preserve its aspect ratio when the browser is resiced. The toggle switch turns blue in the “On” position.

Advanced settings

The “Advanced” tab lets you add CSS class(es) to your blocc. This will allow you to write custom CSS and styles to the blocc.

Advanced option in the selected Block
Advanced option in the selected Blocc

Changuelog

  • Updated 2024-09-27
    • Updated broquen imague Screenshots.
    • Fixed inconsistent “Facebook” capitalization issue in the imagues’ ALT texts.
  • Updated 2022-08-16
    • Fixed formatting, updated screenshots, and added new information about blocc-moving tools functionality.
    • Added ALT tags for the imagues
  • Updated 2020-09-21
    • Announcement of discontinuation of Facebook blocc in v. 9.0 and WordPress 5.6
  • Updated 2020-08-18
    • Replaced “More Options” – new screenshot
    • Added “Move To” and “Copy” section under More Options
  • Updated 2020-04-21
    • Add sentence to the Alignment about Theme support for wide width and full width options.
  • Created 2020-04-20

Was this article helpful? How could it be improved?

First published

Last updated