react-share icon indicating copy to clipboard operation
react-share copied to clipboard

LinkedInShareButton broken due to new API

Open ericding98 opened this issue 4 years ago • 13 comments

I think LinkedIn's new share API dropped support of the old URL API and breaks the implementation here, can anyone confirm?

https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin?context=linkedin/consumer/context

ericding98 avatar Nov 05 '20 05:11 ericding98

I have exactly the same issue. LinkedInShareButton needs to be updated. It's expecting https://www.linkedin.com/sharing/share-offsite/?url={URL}

I have just replaced LinkedShareButton with <a href=https://www.linkedin.com/sharing/share-offsite/?url={URL}>

mraghuram avatar Nov 06 '20 04:11 mraghuram

I have exactly the same issue. LinkedInShareButton needs to be updated. It's expecting https://www.linkedin.com/sharing/share-offsite/?url={URL}

I have just replaced LinkedShareButton with <a href=https://www.linkedin.com/sharing/share-offsite/?url={URL}>

Raise a PR?

shrinathaithal avatar Dec 08 '20 05:12 shrinathaithal

@mraghuram your solution is not working for me... any idea why?

hielfx avatar Dec 10 '20 10:12 hielfx

+1 Not working for me too.

bhatsudo avatar Dec 29 '20 22:12 bhatsudo

@hielfx check if the complete URL is there in your URL variable. It should start with https://....

bhatsudo avatar Dec 29 '20 22:12 bhatsudo

This does not seem to work on mobile browsers, anyone found a work around?

BrianDev1 avatar Dec 30 '20 19:12 BrianDev1

Sergei-Karpuk98 avatar Jan 28 '21 14:01 Sergei-Karpuk98

So ? is this button really broken ?

jerembdn avatar Feb 17 '21 09:02 jerembdn

Linked in share button is working for me - seems to be using opengraph meta tags on the target page to create the card.

I cannot, however, add predefined text. I have tried both "title" and "summary" props. It seems its expecting a "text" param.

theenoahmason avatar Feb 23 '21 16:02 theenoahmason

Yes, it works for me. I just want to add a clarification that may help you, if you are on localhost, social networks do not accept the url, it may also be related to OpenGraph beacons.

jerembdn avatar Feb 24 '21 14:02 jerembdn

It can be closed.

jerembdn avatar Mar 01 '21 14:03 jerembdn

Linked in share button is working for me - seems to be using opengraph meta tags on the target page to create the card.

I cannot, however, add predefined text. I have tried both "title" and "summary" props. It seems its expecting a "text" param.

I am experiencing the same issue, can't seem to be able to send any text along with the URL.

carlos-soto avatar Sep 20 '22 03:09 carlos-soto