• Resolved Tessa Watkins

    (@tessachu)


    Similar to this issue, Yoast 15.7 is outputting this in my <head> element for the “og:image” meta data:
    <meta property="og:image" content="https://example.com/path/to/image.jpg" />

    However, Facebook’s debugger tool is complaining that it needs to have a name property, specifically displaying this error:

    Tag specified as ‘name’ instead of ‘property’
    The following meta tags are specified using ‘name’ instead of ‘property’ and will be ignored unless specified using the ‘property’ key: og:image

    So I’m wondering if a meta tag like this can be added (or instead of, whichever is best practice):
    <meta name="og:image" content="https://example.com/path/to/image.jpg" />

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • We are afraid to say that we are not seeing such a notice when we run the Facebook Object Debugger test on here. In this case, can you please share the exact page URL where the issue remains occurring for you so that we can test it on our end?

    We look forward to hearing from you.

    Thread Starter Tessa Watkins

    (@tessachu)

    Sure this is an article on my websites where it’s happening and this is a link to the Facebook sharer debugger where you can see Facebook is pointing out the error.

    Thanks for sharing the relevant information with us. We looked at the relevant page and see the following og:image meta isn’t generated by Yoast SEO plugin.

    <meta name="og:image" content="https://i0.wp.com/lebofightsracism.com/wp-content/uploads/2021/01/JamesEades-LondonProtest.jpg?fit=2048%2C1366&ssl=1"/>

    The relevant og:image meta is generated by a 3rd party source (most likely the currently active theme). Once you remove the relevant og:image, the warning will disappear for you.

    Thread Starter Tessa Watkins

    (@tessachu)

    Okay, thank you. I assumed it was Yoast since it was between the HTML comments for your plugin. Perhaps it was modified by JetPack or WP Fastest Cache because it’s changing the URL to use a CDN link…

    For quick reference, is there a PHP hook or filter that either plugin would use to modify that meta tag’s output that I should look for? Thanks!

    Hi @tessachu

    We are not sure what filter or hook they are using. It’s best to check with them to know what they are using and how you can disable/remove it. Sometimes, it’s a specific functionality on those plugins that need to be disabled to prevent outputting OpenGraph data.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘og:image is using wrong meta markup’ is closed to new replies.