• Resolved Carl Gross

    (@carlgross)


    Hello. Before installing/configuring your plugin, is it possible to determine exactly how much FB/IG content I have embedded on my site using oEmbed? If I have zero affected content, I don’t want to spend time installing/configuring your plugin. My site is has a relatively large amount of pages/posts (content added by others), so manually searching each will be a bit tedious. Can I perhaps carry out a database search to determine how many pages/posts contain such content? If so, what exactly should I search for?

    Also, does your plugin work for content embedded with the classic editor, or only Gutenberg? My site uses the classic editor only. Your article seems to mention only Gutenberg, but this article seems to say this issue affects both Gutenberg and the classic editor.

    Thanks in advance.

    • This topic was modified 3 years, 11 months ago by Carl Gross.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    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.

    Thread Starter Carl Gross

    (@carlgross)

    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?

    Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    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.

    Thread Starter Carl Gross

    (@carlgross)

    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?

    Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    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.

    Thread Starter Carl Gross

    (@carlgross)

    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?

    Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    Yes, Pinky promise 🙂
    In fact, this plugin only provides APIs for embedded for WordPress to pick up. Not the other way around.

    Thread Starter Carl Gross

    (@carlgross)

    Great thanks very much for all that.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to determine if this issue affects me?’ is closed to new replies.