Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinkedIn not picking up og:image

For one of my websites I am using Open Graph to enrich posts shared from my website. But LinkedIn is not picking the image specified in og:image. The image is modified for the LinkedIn bot to be 200px X 200px by a simple PHP script.

I found some experiencing a similar problem (Linkedin not getting thumbnail image) but this problem is not yet solved.

like image 986
Rik Morskate Avatar asked Apr 21 '15 10:04

Rik Morskate


People also ask

What size should Og image be?

The most frequently recommended resolution for an OG image is 1200 pixels x 627 pixels (1.91/1 ratio). At this size, your thumbnail will be big and stand out from the crowd. Just don't exceed the 5MB size limit.

What is OG image Secure_url?

og:image:secure_url - An alternate url to use if the webpage requires HTTPS. og:image:type - A MIME type for this image. og:image:width - The number of pixels wide. og:image:height - The number of pixels high.


2 Answers

I know it's old but this helped.

Linkedin caches link preview content for 7 days. You have to do the following to clear Linkedin Preview cache:

Step 1: Visit https://www.linkedin.com/post-inspector/inspect/

Step 2: Enter your url and click on Inspect, You will see the updated preview image

Step 3: Now try sharing your url on Linkedin

like image 161
Adriana Avatar answered Oct 04 '22 17:10

Adriana


You might need to check linkedin post cache and refresh it for a specific link.

https://www.linkedin.com/post-inspector/

like image 38
Numan Karaaslan Avatar answered Oct 04 '22 17:10

Numan Karaaslan