5

I've got some question about the linkedin api regarding the share link for social media. The api (https://developer.linkedin.com/docs/share-on-linkedin) shows, disregarding the url parameter, further parameters like title or summary. But if i call the url, for instance from the doc: https://www.linkedin.com/shareArticle?mini=true&url=http://developer.linkedin.com&title=LinkedIn%20Developer%20Network &summary=My%20favorite%20developer%20program&source=LinkedIn

it redirects to https://www.linkedin.com/sharing/share-offsite/?url=http%3A%2F%2Fdeveloper.linkedin.com but without parameter..

Is it a change in the linkedin api or a temporary issue? Or do I have a problem in my understanding?

Best regards Richard

Alex Ananjev
  • 269
  • 3
  • 16
richipg
  • 51
  • 1
  • 3

1 Answers1

2

Much has changed with LinkedIn since it was purchased by Microsoft. What you had used to work for title, etc., but no longer. This is the only available format you're allowed to use...

https://www.linkedin.com/sharing/share-offsite/?url={url}

Source: Official LinkedIn Sharing Documentation.

The only way to have a preview of your title, image, etc., is to use og: tags. Insert these within the <head> block of your 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" />

Source: LinkedIn Developer Docs: Making Your Website Shareable on LinkedIn.

And, if you want to be sure that you did everything right, insert your website's URL into LinkedIn Post Inspector.

HoldOffHunger
  • 18,769
  • 10
  • 104
  • 133