LinkedIn's published og:image URL expiring - linkedin

When sharing an article hosted on LinkedIn, the og:image URL expires after a certain time (I think 24 hours). Is there a direct URL to call in order to get an always up-to-date og:image?
For an internal work resource, I pull og:image to use as featured images for a site built on Wordpress that links out to the LinkedIn URL.

To quote the official documentation, LinkedIn.com: How to clear Linkedin link preview cache?...
After updating your website with perfect preview content and image, if you try sharing your website link you will still see old preview content and image. That's because LinkedIn caches link preview content for 7 days.
So, if you mean the image is expiring in that the cache isn't being updated, then that would be your problem.
You can clear the cache easily: Use the LinkedIn Post Inspector. Inspect your site with the LinkedIn Post Inspector. This causes LinkedIn to refresh your share URL's preview. It also provides useful information on how your site is rendered.
If you want to check, to verify, that it is a caching problem, then try this: share example.com?test=1 instead of example.com on LinkedIn. Since the URL is technically different, there'll be a cache miss, and LinkedIn will have to generate a fresh preview. This will at least confirm if it is a caching problem.

Related

Open Graph on LinkedIn does not work for my client's site

For some reason sharing links on LinkedIn from my client's site does not work.
I've checked the specifications on https://www.linkedin.com/help/linkedin/answer/46687/making-your-website-shareable-on-linkedin?lang=en and it looks like all the og meta tags re correct. Sharing on other social media works without problems. It's only on LinkedIn where the Open Graph data is not picked up.
Here is a sample URL which does not work on LinkedIn:
https://nomadandvillager.com/bestemmingen/kenia/mbara/vrouwenbesnijdenis/
Am I missing something?
Would you be able to share a bit more on how you're getting the tags to render on Facebook and the like?
I encountered the same problem (My site runs on Angular), but my approach was to redirect the LinkedInBot via .htaccess.
Eventually, I gave up, and wrote a custom share button with LinkedIn's rest API
With it, you will be able to specify the details of the share, and avoid the messy workarounds for LinkedIn.
Direct Sharing on LinkedIn
Sharing via REST API
Original link: http://blog.crazy.technology/post/Clash-of-Clans---How-to-use-the-Web-API-570dd2b2

LinkedIn and Open Graph : site not shareable on LinkedIn without reason

I'm trying to make my website shareable on LinkedIn.
URL : https://www.jedecouvremercator.com/
My website is W3C validate. I have followed all the LinkedIn recommendations and Google recommendations. My Open Graph meta is correct and the website is shareable on all other platforms.
But when I'm trying to share it on LinkedIn or when I use a custom link to share it, LinkedIn can't display the meta information.
(I always use garbage into the URL to kill cache before verifying my changes).
Can somebody tell me why?
Thanks a lot.
The site in your URL is down, and you didn't post any code, so that makes this difficult, but not impossible. I can still view your URL through archive.org, and when I try to share the archive.org URL, like this...
https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fweb.archive.org%2Fweb%2F20190618064744%2Fhttps%3A%2F%2Fwww.jedecouvremercator.com%2F
When I click the above, everything works perfectly fine for me. Example:
If you need more info: Official LinkedIn Documentation for Formatting URL and Official LinkedIn Documentation for OpenGraph Tags and Prefilled Sharing.

Making your site shareable on LinkedIn

I'm having a few issues with making our site shareable on linked in and I'm at a loss. The og: meta tags all look fine, the facebook scraper picks it up fine, but the linkedIn scraper does not... and the img etc are not on a protected folder or anything like that.
When inspecting the developer tools the get request to the url-preview?url= link shows that the img etc.. aren't there.
The image is less than 1mb, all og: meta tags are obeyed. The only think that may not be 100% is the image ratio is not 1/4 or 4/1 (it's 2/1)... But that is only a recommendation and not a hard and fast rule.
Does LinkedIn provide something similar to FB (https://developers.facebook.com/tools/debug/) where you can test the scraper and re-run it? Or is there another way to debug this? Any help appreciated.
https://www.hipla.co.uk (is the page i'm trying to share).
cheers
It transpires linked in doesn't offer a similar facility to FB or twitter to test the OG meta tags and re-scrape the page. They cache a page for 7 days and then re-scrape again. However, you can refresh the linkedIn crawler cache simply by appending GET params to the URL, i.e. https://www.hipla.co.uk?123.
I eventually figured out what our issue was. We were using a wildcard cert (for multi domain, so we could have a single ssl cert for multiple subdomains) which meant we had to set the server name in the apache default-ssl.conf file, but we had a typo in it for the www instance ... which meant it gave an SSL error (for the linkedIn crawler) which isn't debuggable (if that's a word) using linkedIn but was spotted as we got an SSL error when testing the twitter metadata tags using the twitter card validator. Hope this helps anyone else who has a typo in their ssl settings. Note that the ssl error was not visible using a browser(s) as all looked fine.

When using linkedin share api submitted-picture-url or sharing url via linkedin, particular url format doesnot work?

I am trying to share a particular image using Linkedin and also via Linkedin share api, bit the places I see the same problem.
My Url is http://test.actonsoftware.com/acton/cx/812/logo22.png?ts=1427789277713
While sharing this linkedin is unable to load the image. I can see that linkedin hits my server and respond back to linkedin correctly but still it does not show the image.
When using the share from linkedin website I see the same problem.
I figured out the problem, I was not setting the mime-type for the image. After setting proper mime-type for response header properly it works

How to get all content of website from google cache?

My gmail account was hacked today, and I can't login or request new password anymore. And I lost all content in my blogspot too.
I looked around and found it was stored in google cache. But I had more than 200 articles, and I need to go through more than 200 urls to copy all content.
Is there any methods can help me retries all content from google cache?
A Web Crawler could help you to retrieve many pages of information.
Also, maybe you could use Internet Archive Wayback Machine to retrieve some lost information.
Another tip: the google advanced search could help you too. In particular, the site or domain param.
Update: Maybe this script can do all work for you: Retrieving Google’s Cache for a Whole Website

Resources