Hi @carlgross
WordPress caches the oEmbed requests permanently unless the post is updated or deleted. This plugin will only be effective if you add or update content with Facebook/Instagram embeds.
You can search for existing Facebook-related content with a query like this:
SELECT * FROM wp_postmeta WHERE (meta_value LIKE '%facebook%') OR (meta_value LIKE '%instagram%')
If you see any positive results, that means you have content with those embeds.
This plugin works with the classic editor as well. WordPress internally uses same APIs to fetch embed content. I will update the readme file to make it more clear in the next release.
OK thanks for the quick reply. I’ll try the DB search now.
In the meantime, I have one more question about your plugin. Let’s say I have existing oEmbed content, and install your plugin. Will my existing content be automatically fixed, or will I have to manually remove existing oEmbed content and re-add it using your plugin?
It should automatically “heal”.
The plugin intentionally overrides WordPress’s legacy API for Facebook and Instagram, so when the plugin is present, it will use the new APIs to fetch embed content.
You don’t need to remove content; the plugin automatically provides the replacement APIs so the embeds are fetched without having to do anything further.
OK thanks for tha tinfo.
I ran the SQL query. Will EVERY query result be a post containing a Facebook oEmbed? Or will the query results contain many entries, including all of my Facebook oEmbeds? I think the latter–correct? I say that because there are 24 query results, and only one appears to be from a post of mine (screenshot). The others seem to pertain to my theme, and maybe a plugin.
Furthermore, the one post in the search results (postid 2292; see post here) doesn’t seem to have any of the ‘rich’ embedded content that is described in this article, e.g. nice image, nice icon, nice text formatting, etc. All that exists on the page is a link to a Facebook page (screenshot).
In light of this, it doesn’t look like my site as any content that needs fixing. What do you think–would you agree with that?
You are right, it’s probably the latter.
SELECT * FROM wp_postmeta WHERE (meta_value LIKE '%fb-root%') OR (meta_value LIKE '%instagram-media%')
Here is another more fine-grained query. They are the output HTML from oEmbed APIs. If you see positive results, they are very likely from Facebook/Instagram embeds.
OK thanks for confirming.
So what about my actual query results, and the fact that they contain only one post (which itself doesn’t have any rich oEmbed content). Would you agree that your plugin would not have any affect on my site’s current content?
Yes, Pinky promise 🙂
In fact, this plugin only provides APIs for embedded for WordPress to pick up. Not the other way around.
Great thanks very much for all that.