react-share
react-share copied to clipboard
LinkedInShareButton broken due to new API
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
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}>
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?
@mraghuram your solution is not working for me... any idea why?
+1 Not working for me too.
@hielfx check if the complete URL is there in your URL variable. It should start with https://....
This does not seem to work on mobile browsers, anyone found a work around?
So ? is this button really broken ?
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.
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.
It can be closed.
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.