oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos, videos or text) when a user posts a link to that resource, without having to parse the resource directly. oEmbed was designed to avoid the need to copy and paste HTML from the site hosting the media you wish to embed.
Facebook oEmbed endpoints allow you to get embed HTML and basic metadata for pages, posts, and videos in order to display them in another website or app. With the depreciation of Facebook’s old oEmbed endpoints, Facebook now requires each developer to register an app, and use a client token when getting data from their Graph API for both Facebook and Instagram oEmbed content.
Here are the methods you can use to fix the Facebook and Instagram oEmbed issue on WordPress.
Facebook offers one solution, which is to meet its stringent set of new requirements. The requirements include:
- A Facebook Developer account
- A registered Facebook app
- The oEmbed Product added to the app
- An Access Token
- The Facebook app must be in Live Mode
2. Use a WordPress plugin
There are a set of plugins that you can you to embed Facebook and Instagram content on your WordPress site. These plugins include:
a. oEmbed Plus
oEmbed Plus provides support for Facebook and Instagram content embedding for free, but it requires publishers to register a Facebook developer account and create an app. The app doesn’t actually need to be a real app it will only exist on paper. This plugin does make the process easier than doing everything on your own.
b. Smash Ballon Plugins
Smash Balloon offers free dedicated plugins Facebook and Instagram. With these plugins you will not have to go through the process of registering a Facebook Developer account and creating an app. This is because Smash Balloon already has the API key required to create custom feeds for both Facebook and Instagram. There’s no additional authentication needed to restore embedded content. After installing the plugins go to the oEmbed navigation menu and then click on the ‘Connect’ button.