Linkedin share api not picking up open-graph meta tags - linkedin

I am sharing an url "https://timesofindia.indiatimes.com/trend-tracking/jaitley-promises-robust-tax-regime-for-investors/articleshow/62741496.cms?utm_source=linkedin.com&utm_medium=social&utm_campaign=TEST-LINKEDIN" via share api, but no image is picked up from the og:image tag (i.e. meta property="og:image" content="https://example.com" ).
But when i am trying to share the same url from linkedin admin page, it is picking up the image. This means that the image follows all the size-standards and other things required by linkedin.
Then why is the share api not picking up image url from the open graph tag.

If you think your share is properly formatted, but it's not working, first thing I would do is head on over to the LinkedIn Post Inspector, which will examine your URL and look for problems.
But, your URL does look right! Are you sharing like this, with proper URL encoding?
https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Ftimesofindia.indiatimes.com%2Ftrend-tracking%2Fjaitley-promises-robust-tax-regime-for-investors%2Farticleshow%2F62741496.cms%3Futm_source%3Dlinkedin.com%26utm_medium%3Dsocial%26utm_campaign%3DTEST-LINKEDIN
Because this link works for me! Take a look:
Sometimes you just need another pair of eyes on the same problem! Hope this helps!

Related

My images are not displaying when I send a link

I use wordpress.org and bluehost. My site url is http://www.midnightmassmusic.com , and everytime I share an article either through text message, or onto fb, it doesn't display an image. I used facebook debugger and it keeps say there's no og description, and it's an invalid content type. How do I fix this? I even added facebook and google to hotlink protection, wondering if that was causing it. It didn't help. I use Yoast, didn't help. Is it possibly my image optimizer (Ewww) plugin interfering? Or are my image files not formatted correctly? Bluehost won't help me because they claim it's Facebook's problem..but it's not. The same error is occuring when sharing through text.
First of all, there is no og:decription tag in your source, so Facebook is right about that. That being said, your og:image is not accessible in public. I get a 403 error when i try to load it in the browser: https://midnightmassmusic.com/wp-content/uploads/2019/01/20181230_1552042-1-e1547951786467.jpg
Btw, your image size would be 600x800, which is not an appropriate aspect ratio for og images. You should use 1200x630 according to the docs.

Issues with sharing via LinkedIn API, response ok, but posts not showing

We use LinkedIn API for past year to share on LinkedIn profiles and pages using API endpoints
https://api.linkedin.com/v1/people/~/shares
and
https://api.linkedin.com/v1/companies/{company-id}/shares
Response is always returned as:
{
"updateKey": "UPDATE-xxxxx-xxxxxxx…",
"updateUrl": "https://www.linkedin.com/updates?discuss=…&scope=…"
}
But for past week when sharing some message with link included, posts/comments are not always showing, both on pages or on profiles, no matter response from API is OK with combination of updateKey and updateUrl.
Is this bug on LinkedIn API, or is there some restriction rule for API calls, where API accepts message with link included, and returns positive response with updateKey, but LinkedIn won't show up in feed?
We had a similar experience this week. Our users were posting links through our app of links to youtube, and Linkedin would tell us everything is fine with a response like the one you posted. We would mark it as successful in our system, but post would never show up.
Linkedin seemed to be scrubbing all of our links to videos (youtube, vimeo, etc). Once we started adding a share image as well the links started showing up correctly.
Our solution was to always include an image when posting to Linkedin.
{ 'submitted-url' => <link user shared>, 'submitted-image-url' => <image of some kind> }
What we do is try to pull meta image from the link before publishing and use that. If we can't find one we just pushed a 1px by 1px image. Linkedin is now consistently sharing our posts.
If your issue is not with video urls I would look at if your links are maybe missing the correct meta tags for images. As a fallback you could always try posting an invisible image like we did.

Image preview for web sharing in Line chat

I make a website and I try to share it via Line chat. It seems that Line chat has a feature to display web preview like Facebook does. My question is, how to control which image and description that will be shown in Line chat? I know for Facebook but I never know in Line. I have tried googling around but I don't know the keyword for it. The google result is not what I expected.
Thank you for your help.
I think what you are searching is using HTML Meta Tags on sites. Social Media such as facebook, twitter, etc. usually reads index.html's <meta> tags to provide a preview about the sites. You may learn more about meta tags here.

Facebook share og:image incorrect. Debugger is picking up the correct image

The past week, Facebook has been getting every article feature image wrong on my site. The og:image is clearly defined, worked fine for the past few months and even the debugger shows the correct image, yet it chooses to use the same incorrect image across all new articles now.
Article
http://www.highwaysindustry.com/causeway-creating-a-competitive-edge/
Facebook Debugger:
https://developers.facebook.com/tools/debug/og/object/
URL: http://www.highwaysindustry.com/causeway-creating-a-competitive-edge/
The meta tag, which clearly provides/defines the correct image Facebook should be using:
<meta property="og:image" content="http://www.highwaysindustry.com/wp-content/uploads/2015/05/Causeway-image-1.jpg" />
When on the debugger, if you Fetch New Scrape Information it will fix the issue. However I am currently having to do this on every single article that is posted. Why it's getting the wrong image in the first place I don't know.
In case someone runs the 'fetch new scrape information', here it is at the moment for that URL provided:
https://www.dropbox.com/s/8t4o9h3o1p9uxhv/debugger-fb.png?dl=0
I am using WordPress and Yoast SEO.
There's a warning. And it's going to take some time to update the latest information but for now you might have to fetch new scrape information yourself.
og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image that's at least 200x200px and is accessible from Facebook. Image 'http://www.highwaysindustry.com/wp-content/uploads/2015/02/Dorman00001-e1423681471392.jpg' will be used instead.

Linkedin not getting thumbnail image

Everytime i try to share a wordpress post in my Linkedin it doesn´t pick up the imagem in the article. Don´t have any problem doing this on Facebook for example and i think everything in the Open Graph Meta is correct because my source code says:
meta property="og:image" content="http://smartkiss.net/assets/online-ad.jpg"
The dimensions are more than 80 x 150 pixels as Linkedin recommends. Any idea why this might be happening ?
Thanks
One of the possible reason might be that LinkedIn takes image from oEmbed tag as it shown in another topic.
I faced with wrong image choosing by LinkedIn in my WordPress site. I found the problem by discovering URL by LinkedIn post inspector and saw the next information:
Try serving your images in a .png format versus a .jpg format. I know of several people having the exact same issue and this always worked.

Resources