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

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.

Related

LinkedIn's published og:image URL expiring

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.

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

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.

Embedding LinkedIn company updates / feeds

We have created a SharePoint 2010 web part where we display our company feed from https://www.linkedin.com/company/"Name of Company"/.
End-users need to login the first time (that is ok). But even though they login using their personal LinkedIn profile, they cannot see our company-feed. Why is that?
If the users are set as LinkedIn Designated Admins they can see the feed, otherwise they cannot.
We are using
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key: "The key"
lang: da_DK
authorize: true
onLoad: onLinkedInLoad
</script>
I hope someone can share their knowledge.
This is why :'( https://developer.linkedin.com/blog/posts/2015/developer-program-changes
Starting on May 12, 2015, we will be limiting the open APIs to only support the following uses:
Allowing members to represent their professional identity via their LinkedIn profile using our Profile API.
Enabling members to post certifications directly to their LinkedIn profile with our Add to Profile tools.
Enabling members to share professional content to their LinkedIn network from across the Web leveraging our Share API.
Enabling companies to share professional content to LinkedIn with our Company API.
Only people who can admin the feed can read/update to the company feed. All others are excluded unless you manage to get yourself promoted to LinkedIN partner: https://developer.linkedin.com/partner-programs
Some light on this issue over here:
As ahmeij said, Linkedin doesnt provide anymore an easy way of embedding your company/personal profile timeline anywhere. However, there is an alternative way of implementing this.
You will make use of the RSS feed of the profile. The url will be something like this:
https://www.linkedin.com/biz/[PROFILE ID]/feed?start=0&v2=true
You can find out the numeric ID in you profile/company page.
Read the full source here: https://www.glintech.com/blog/confluence-embed-linkedin-company-feed.html
I found the way to implement a CORS proxy, and got this working.
I used this simple PHP CORS proxy
However, LinkedIn site doesn't return any information from this URL anymore, it just returns a [301 - moved permanently] error :_(
As Alberto mentioned in the post below a RSS feed can be used to create an embed code. To enable RSS on your LinkedIn and get the RSS link you can follow this guide. Then you can use this plugin to generate an embed code of the feed.
You can use a social wall solution like Walls.io to add LinkedIn company feeds to your Sharepoint website. The tool generates an iframe or JavaScript code that you can embed. Here's an article on how it works on SharePoint.

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

Resources