How to share an Custom Image on LinkedIn Share

1.4k views Asked by At

I am trying to setup social share with LinkedIn JS API on a blog. The share function works fine but the image shared on the post is random. Instead is there a possibility to share a specific or custom image?

Thanks.

1

There are 1 answers

0
HoldOffHunger On

Make your own HTML button, with its own CSS styles and JS functionality, and then all you need is to hyperlink it:

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

This doesn't just let you control the image, it lets you control every aspect of the new share button.

Source: Microsoft LinkedIn Share URL Documentation.

For example, this works for me:

https://www.linkedin.com/sharing/share-offsite/?url=http://www.wikipedia.org/

Works fine: