Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrong image displayed by LinkedIn Open Graph

I'm trying to share http://gbgtechweek.com/ on my LinkedIn profile.

I have this meta tag:

<meta property="og:image" content="http://gbgtechweek.com/img/gbgtechweek_img.png" />

However, LinkedIn chooses to show another image from the page (http://gbgtechweek.com/img/goteborg00.jpg)

Is this because of the size, and how do I fix it?

I tried to update by using "?!" in the end, so LinkedIn would re-fetch the Open Graph data, but didn't work.

Any solutions?

like image 742
Andreas Rolén Avatar asked Apr 22 '15 06:04

Andreas Rolén


People also ask

How do you add an image to open graph?

To add the OG image, scroll to the bottom to find the Upload button. Click it to add an image at a recommended size of 1200 pixels by 630 pixels. You'll need to save (Update) the post or page for the changes to take effect.

Does LinkedIn use Open Graph?

LinkedIn uses something called Open Graph meta tags to get the data pertaining to the image, title, and description of your link. These are what you could debug using the free tool Post Inspector.


1 Answers

LinkedIn can take the image from tag named 'oEmbed' despite og:image tag exists.

Here an exapmle:

<link rel="alternate" type="application/json+oembed" href="https://www.s-sols.com/api/oembed/1.0/embed?url=https%3A%2F%2Fwww.s-sols.com%2Fhow-make-multipage-website">
And this JSON content contains ordinary image.

I faced with that problem in WordPress. The cure was to remove this tag as described here:

remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
remove_action('wp_head', 'wp_oembed_add_host_js');
remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
like image 64
Seraphinite Solutions Avatar answered Sep 29 '22 14:09

Seraphinite Solutions