Reputation: 3
I would like to use my own image for the LinkedIn share button. I've been following the information on this previous post:
How to make a custom LinkedIn share button
It's noted here that: To create a custom Share button for LinkedIn, you need to make POST calls now.
I've read the Linkedin documentation however I don't understand how to incorporate the POST call with my HTML page. Could someone help explain it to me please?
I've initially tried to use this URL which i understand is now not supported by LinkedIn:
It partially works! The image, title and summary are all incomplete or not what I have specified in the URL, however if I click on the LinkedIn post it does actually link to the right page.
Is there anyway of getting this working?
Many thanks
Upvotes: 0
Views: 5319
Reputation: 20891
Let's take a quick glance at the Official LinkedIn "Making Your Website Shareable on LinkedIn" Documentation. The URL format should be...
https://www.linkedin.com/sharing/share-offsite/?url={url}
And to have it use the other parameters, such as image
, etc., set your og:
tags in the HTML of the link you are sharing, like so...
<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" />
Upvotes: 1