LinkedIn is not picking up og: image
For one of my sites, I am using Open Graph to enrich the posts posted on my website. But LinkedIn doesn't select the image specified in og: image. Image modified for LinkedIn bot 200px X 200px with a simple PHP script.
I found that some are experiencing a similar problem ( Linkedin is not getting the thumbnail image ), but this problem has not been resolved yet.
source to share
I know this is old, but it helped.
Linkedin caches content preview links for 7 days. To clear Linkedin's preview cache, you need to do the following:
Step 1: Visit https://www.linkedin.com/post-inspector/inspect/
Step 2. Enter your URL and click "Check". You will see an updated preview image
Step 3: Now try sharing your URL on Linkedin
source to share
This question is a bit old, but I ran into the same situation and decided that I would just post my solution (or my understanding of how it works) for others, has the same problem.
(Thanks for @Justin Kominar, his answer to this question helps me.)
- Make sure you have
prefix="og: http://ogp.me/ns#
in your tag when you have iframe (s) make sure the page calls the share function. - Make sure you have set all four tags
<meta>
on your site and have the correct type<meta property="og:type>
(go to ogp.me for more information) - Make sure you pass the correct url (the one you want to share, for example https://news.com/this_news ) so
<meta property="og:url>
that especially when you are using a dynamic url - On the page you navigate to
og:url
(it is very important to understand that linkedin will go to this page to look for information, not the page you call the share function, most of the time they are the same, but sometimes they are not), you you need to do steps 1 and 2, install<meta og:image>
AND MAKE SURE THE PICTURE LINE IS REALLY AND THE PICTURE EXISTS
Hope this helps.
source to share
I am facing the wrong choice of LinkedIn images on my WordPress site. I discovered the problem by spotting the URL by the LinkedIn post inspector and found that the oEmbed tag was used dispite og: image tag exists:
source to share
What does your code look like?
<html prefix="og: http://ogp.me/ns#">
<head>
<meta property="og:title" content="My Shared Article Title" />
<meta property="og:description" content="Description of shared article" />
<meta property="og:url" content="http://example.com/my_article.html" />
<meta property="og:image" content="http://example.com/foo.jpg" />
</head>
<body>
…
</body>
</html>
Also check the documentation here:
https://developer.linkedin.com/docs/share-on-linkedin
Also, check your URL using Facebook Linter (it works with all OG tags):
source to share