add title and description with LinkedIn share button
Asked Answered
D

2

7

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.com/cws/share?url=http%3A%2F%2Fgoogle.com

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.

Deprivation answered 28/11, 2012 at 14:54 Comment(0)
R
8

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

You mean this? LinkedIn share article script.

Readymade answered 5/1, 2013 at 8:48 Comment(2)
Is there a way to determine if the article is successfully posted or not using that share article script?Niobe
not working anymore these daysSummer
U
2

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

https://www.linkedin.com/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

Social Share URLs Image

Unwelcome answered 16/5, 2020 at 20:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.