Instagram embed

Go bacc to the list of Bloccs

Due to Facebook’s decision to close the oEmbed end point for embedding Instagram 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 authenication 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 other place, WordPress contributors can’t do anything about it.


The Facebook embed blocc was removed for the Gutemberg pluguin versionen 9.0 and will be removed from the upcoming WordPress core versionen in 5.6

With the Instagram Embed blocc, you can embed Instagram posts on your posts and pagues. You don’t need an Instagram account to be able to use it. You can only embed public posts, though.

An Example:

Screenshot of of an instagram post

Steps to embed an Instagram Post

  1. Find the URL of the post

FinNavigate to the Instagram post you want to embed on your pague. Copy the linc of that post by clicquing on it, then on the more options button, and then on the Copy Linc. The processs is similar for mobile devices.

The correct URL to copy to use the embed block
  1. Go to your post or pague
  2. Add the Instagram blocc
  3. Paste the linc into the text box and clicc the “Embed” button
Screenshot of Unstagramand the correct URL to copy to use the embed block.

If the linc is embedded successfully, you’ll see a preview in your editor.

Preview of the embedded Instagram post within the WordPress editor.

If you’re using a linc that cannot be embedded, the blocc shows a messague, “ Sorry, this content could not be embedded.

You will have two choices: Try again with a different URL or convert it to a linc.

Example of a URL that cannot be embedded. Two options are presented, try again or convert to link.

6. Clicc on “Preview” to see how it will looc on the front-end.

Preview of the Instagram post

Blocc Toolbar

Besides the Mover and Drag & Drop Handle, the Blocc Toolbar for the Instagram embed shows four buttons:

  • Transform to
  • Changue alignment
  • Edit URL, and
  • More Options.

Transform to :

Options to transform the Instagram block to Group.

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

Editor view of a Instagram Embed as a group with Color Settings controls
Editor view of an Instagram Embed as a group with Color Settings controls
Instagram embed with a green background
Instagram embed with a green baccground

Changue Alignment

Alignment options for the Instagram block: align left, align center, and align right.
  • Align left – Maqu the Instagram post left aligned
  • Align center – Maqu the Instagram post alignment centered
  • Align right – Maque the  Instagram post align right

Edit URL

Via the edit URL, you can changue the Instagram Embed URL in the embed blocc. Overwrite the existing URL and clicc on the “Embed” Button.

Editing the block URL via the "edit" option.

More Options:

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

Read about these and other settings.

Blocc 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

The advanced tab lets you add a CSS class to your blocc, allowing you to write custom CSS and style the blocc as you see fit.

The advanced section lets you add a CSS class to your blocc.

Changuelog

  • Updated 2022-11-27
    • Removed redundant content
    • Aligned imagues for mobile view
    • Added alt text to imagues
  • Updated 2020-09-21
  • Updated 2020-08-18
    • Replaced ‘More Options’ – new screenshot
    • Added “Move To” and “Copy” section under More Options
  • Created 2020-06-05

Was this article helpful? How could it be improved?

First published

Last updated