AddThis. LinkedIn sharing is not working on iPhone - linkedin

When I try to share my page with AddThis to Linkedin it is working fine from desktop, but even the same URL is not working when I do just the same from iPhone.
To test it:
Open AddThis home page and click share to LinkedIn button. As a result I have http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.addthis.com%2F%23.Tt3z80Hs1Wo.linkedin&title=AddThis+-+Share+Button%2C+Social+Bookmark%2C+Sharing+Plugins+and+Module&ro=false&summary=&source= opened in my browser, which is working fine.
Try to open just the same URL from an iPhone. I have the following error in this case: "We’re sorry. Something unexpected happened and your request could not be completed. Please close this window and try again."
Sounds like LinkedIn API issue. Any ideas how can I fix it?
Thank you.

I was having exactly the same problem this morning. After some digging it turns out that the linkedin http sharearticle API has been deprecated:
https://developer.linkedin.com/comment/9492#comment-9492
, alternatives are the JavaScript API and the REST API which I can't link to as I don't have enough reputation. However they are easy to find on the Linkedin developer pages. Simple JavaScript for a Linkedin share button can be automatically constructed for you here:
https://developer.linkedin.com/plugins/share-button
. Hope that helps!

You're going to want to update your URL format to conform to the Official Microsoft "Share on LinkedIn" Documentation. The format of your URL should be...
https://www.linkedin.com/sharing/share-offsite/?url={url}
Furthermore, parameters like source, title, and summary have all been deprecated, but you can replicate their behavior again by setting the appropriate og: tags in the HTML of your web page, which is good standard anyway. Quoting from Official LinkedIn "Making Your Website Shareable on LinkedIn" Documentation, just put these into your page's HTML:
<meta property='og:title' content='Title of the article"/>
<meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
<meta property='og:description' content='Description that will show in the preview"/>
<meta property='og:url' content='//www.example.com/URL of the article" />
If you make these adjustments, sharing on your page should behave just like it once did!

Related

Linkedin share api not picking up open-graph meta tags

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!

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.

linkedin share button is getting the wrong page title

We gave a list of jobs here - http://jobs.abilityprofessional.com/jobseeker/SearchResults.aspx?featured=1&runsearch=1
If you click on any job to go to the detail page and then click the linkedin share button it always comes up as the Industrial Sales Representative - Columbus, OH job instead of the actual job that you're looking at. I've checked the og:title tag and it's correct, so I'm not sure what's going on here. Is this possibly a linkedin cache issue?
Looks like your OG tag format is a bit off. LinkedIn (and the official OG spec, for that matter: http://ogp.me/) is looking for <meta property="" ...> not <meta name="" ...>.
See their docs here: https://developer.linkedin.com/docs/share-on-linkedin#opengraph
Note that you will now have a cache problem, however. They cache their content for 7 days, so the improper tags will be stuck that way for a few days for any jobs you've already tried to share. Make sure you test with ones that you haven't attempted to share yet so they get a fresh visit from LinkedIn's crawler.
LinkedIn cache can be cleared by submitting the url here https://www.linkedin.com/post-inspector/inspect/

LinkedIn share ignoring OG tags

For some reason LinkedIn won't apply open graph tags. I've tested the OG tags with the Facebook debugger and there were no problems. Here is a link to the page which is serving the OG tags: http://jakonazivo.cz/share/1 . You will have to view a source of this file as its purpose is just to serve the OG tags and then to redirect to the news page on the website.
Any ideas what could be causing this issue with LinkedIn?
There are a few things I can suggest...
You Cannot Use Both Image and Description
As I have stated elsewhere, you cannot use both the image and the description. If you try to use both, only the image will display. Source: Two Week Argument With LinkedIn Developers.
You Should Invalidate LinkedIn Cache
If you're ever unable to figured out why LinkedIn isn't parsing generating the expected preview in its sharing app, then try the LinkedIn Post Inspector. Merely checking my site, then rechecking again a second later, will cause the cache to invalidated after the first attempt, and the new, cached version to be there in the second attempt.
If the LinkedIn Post Inspector is no help, the developers at OpenGraph were wise enough to create the same thing, an OpenGraph Tag Inspector.
If you still think it's the cache, try sharing not example.com, but, example.com/?someFake=Parameter. A different URL will mean a cache miss.
You Should Use OGTags
Finally, be aware that you can only share the following, according to the Official Microsoft LinkedIn Documentation...
<meta property='og:title' content='Title of the article"/>
<meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
<meta property='og:description' content='Description that will show in the preview"/>
<meta property='og:url' content='//www.example.com/URL of the article" />
And be aware: Using og:image means LinkedIn will ignore your og:description tag. You can confirm this yourself by testing with Wikipedia.org (no og:image but an og:description) and GitHub.com (both og:image and og:description tags).

Which image shows up when a link is "attached" on Linkedin?

When I try to share a "discussion" (which is merely a link from our website) at linkedin through the "Attach a link", it used to pull a nice image earlier, but it ceased to do so now.
Is there a meta property="og: we should specifically use for linkedin shares to have an image shown?
The LinkedIn share functionality supports a small subset of open graph tags as documented here:
https://developer.linkedin.com/documents/setting-display-tags-shares
Note that at least until recently (and possibly still) re-scraping of existing shared pages is broken, so if you've already shared a page and it got the wrong image you're stuck unless you share it with a different URL.
Add these meta to your webpage head tag.
<meta property='og:title' content='title'/>
<meta property='og:image' content='image/path'/>
<meta property='og:description' content='description'/>
<meta property='og:url' content='your url'/>
While posting on the Linkedin, there is a linkedin cache so if you are going to re-post the same url again, probably the meta will not be picked up. To fix that you can add a parameter at the end of the url while posting on linkedin
e.g original url www.example.com then you can repost this with www.example.com?1
LinkedIn posts can also be designed from scratch using the jssdk. I created a tool that allows me to select what image is displayed, and what caption gets set, when I share a link.
If you want to develop your own, fork my repo:
https://github.com/kaburkett/LinkedIn-Advanced-Share

Resources