• Resolved commbee69

    (@commbee69)


    Hello

    For my client’s website I have a problem with the OG tags.

    In Yoast seo plugin I setup an Open Graph image.
    When I share the url on Facebook this works perfectly and also ther debugger showsd the correct image. (http://personalcoach4u.be/wp-content/uploads/2017/11/facebook-delen.png)

    However when I share the site on linkedIn it doesn’t show the image above, but an image from the footer.
    I know that LinkedIn has a cache for a week so I waited 2 weeks, but it’s still the same.

    Any idea how I can solve this without using featured image since there’s a slider used?

    Thanks in advance,
    Regards,

    Bart

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • We looked at your provided site and we can confirm the Yoast SEO is generating all the necessary social open graph meta tags correctly as expected.

    When then check the image that you have defined as the og:image and we can confirm that it’s meet the Linkedin requirements. Therefore, we are not sure why the Linkedin isn’t showing the correct image.

    That said, according to the Linkedin, if the image meets the requirements, but it still does not appear in updates on LinkedIn, your website may be blocking us from pulling the image or the image may be located on a protected directory or website.

    For further assistance, please visit the developer site forums.

    Closed due to inactivity.

    Tony

    (@mindfire-tnagy)

    Sorry for the re-open, but in case it’s related and helps someone else, I was told by LinkedIn support that they prioritize oEmbeds over Open Graph tags. By default (I think), WordPress adds the following lines in the <head> section:

    <link rel="alternate" type="application/json+oembed" href="https://www.example.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.example.com%2F" />
    <link rel="alternate" type="text/xml+oembed" href="https://www.example.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.example.com%2F&format=xml" />

    In the resultant JSON/XML, thumbnail_url corresponds with my post’s Featured Image. This is what LinkedIn has been sharing as opposed to my Open Graph tags. I removed those lines via:

    remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
    remove_action('wp_head', 'wp_oembed_add_host_js');

    I tried sharing again with a different page within my site that hadn’t be cached for 7 days (sigh LinkedIn) and it started pulling the correct OG image.

    Tony hello..
    first of all thank you for opening again the ticket and give the solution.
    But please tell me somwthing because i have the same problem.
    these lines code:
    remove_action(‘wp_head’, ‘wp_oembed_add_discovery_links’, 10);
    remove_action(‘wp_head’, ‘wp_oembed_add_host_js’);

    where are put? which file of wordpress?

    thank you very much for your time..

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

The topic ‘LinkedIn showing wrong image’ is closed to new replies.