Have you recently been smacked in the face by error messages like “unexpected JSON response” or a “View on Instagram” text instead of the embedded image you were anticipating?
Well, the source of your problems is an October 24th API update that dropped support for Unauthenticated Instagram and Facebook embeds on WordPress sites. The good old days of pasting a link to an Instagram or Facebook post in your WordPress and watching it turn into a good-looking embed are now behind us (kind of).
When the update rolled out, only publishers with a registered Facebook app and a Facebook developer account could embed content into their sites. And keep in mind that this change extends to prior content—meaning that some embeds from the past will break.
Read on for more on what you need to know about the potentially huge change and effective workarounds.
What the API did was deprecate the existing oEmbed endpoints. If you’re not familiar with the term, oEmbed is a design that allows users to embed content from another page into a website. It grabs basic metadata and HTML for videos, posts, and pages for display in another app or site.
Facebook’s API had oEmbed endpoint built into its framework—but that is no longer the case. WordPress also removed Instagram and Facebook as oEmbed sources in response to the October 24th update.
In order to successfully embed content from Facebook, you now have to meet some stringent measures—including:
But as you can guess, this process is hectic, complicated, simply not viable for some users. Luckily, plugin developers have rolled some simpler solutions for their users as shown below.
Developer Ayesh Karunaratne created a plugin that fixes broken Instagram and Facebook embeds. Here are the steps to active oEmbed Plus:
Developers have been busy making life for their clients easier. Several plugin updates are being rolled out to circumnavigate the new embedding restrictions.
For example, a development company known as Smash Balloon offers dedicated Facebook and Instagram plugin updates that allow users to embed content without the need for additional authentication.
Notes for Ancell Marketing:
Since the update has already rolled out, I wrote the piece post-October 24 since users have already experienced the drop in Facebook and Instagram embed support. So this post is more of a problem-solution kind of article.
Here’s one of the reference links I used: https://wplift.com/facebook-embeds-stopped-working