最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - add title and description with LinkedIn share button - Stack Overflow

programmeradmin3浏览0评论

I am using a simple JavaScript popup window to display a Share with LinkedIn dialog, based on the solution in this thread: How to make a custom LinkedIn share button.


I was wondering if there is any way to add a title and description to the query string? I noticed that when you do this with the google example it automatically pulls in this information. Any help is appreciated.

I am using a simple JavaScript popup window to display a Share with LinkedIn dialog, based on the solution in this thread: How to make a custom LinkedIn share button.

https://www.linkedin./cws/share?url=http%3A%2F%2Fgoogle.

I was wondering if there is any way to add a title and description to the query string? I noticed that when you do this with the google example it automatically pulls in this information. Any help is appreciated.

Share Improve this question edited May 16, 2020 at 20:07 HoldOffHunger 21k11 gold badges120 silver badges146 bronze badges asked Nov 28, 2012 at 14:54 DrewDrew 2,6318 gold badges44 silver badges66 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

http://www.linkedin./shareArticle?mini=true&url=http://example./adaptxt-beta-android&title=http://example./adaptxt-beta-android&summary=http://example./adaptxt-beta-android&source=http://example./adaptxt-beta-android

You mean this? LinkedIn share article script.

The only parameter supported by the LinkedIn share url is url, so, try something like this...

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

Official Microsoft LinkedIn Share API Documentation. Take a look here, you'll see that LinkedIn no longer supports a summary, title, or other parameters. Only url.

They used to support other parameters, though. But they seemed to have changed with Microsoft's acquisition of LinkedIn. Wished someone updated you on that? If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check it out! Social Share URLs

发布评论

评论列表(0)

  1. 暂无评论