How to make a custom LinkedIn share button

前端 未结 10 1633
情书的邮戳
情书的邮戳 2020-12-02 05:47

I need to be able to add sharing functionality to my custom button. I\'m not interested with their generator, as I can\'t change LinkedIn image there. I want to use my own i

10条回答
  •  情书的邮戳
    2020-12-02 06:51

    July, 2020 - Social Sharing With LinkedIn

    Many of the answers here were valid until recently. For now, the ONLY supported param is url, and the new share link is as follows...

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

    Source: Official Microsoft.com Linkedin Share Plugin Documentation. All LinkedIn.com links for developer documentation appear to be blank pages now -- perhaps related to the acquisition of LinkedIn by Microsoft.

    Once upon a time, you could use these params: title, summary, source. But if you look closely at all of the documentation, there is actually still a way to still set summary, title, etc.! Put these in the block of the page you want to share...

    • I have been maintaining a Github Repo that's been tracking social-share URL formats since 2012, check it out: Github: Social Share URLs.

      Why not join in on all the social share url's?

提交回复
热议问题