react-share
react-share copied to clipboard
LinkedIn Share Button still not working
Trying to use the LinkedIn share button and passing in all the possible props, but only the link is showing in the post? Any idea if/when this will be fixed?
Same Issue. Only link is shared. Cannot share another props.
Seems to be completely broken now, I suppose it's because the URL structure has changed from current https://github.com/nygardk/react-share/blob/2f8e90646211b07868b3feb52b910cc096e517ad/src/LinkedinShareButton.ts#L18 to https://www.linkedin.com/sharing/share-offsite
- which works
Their LinkedIn share is still working on demo though, which is odd, it changes from the old URL to the new URL right when I clicked it. However in their source code, it is still showing the old URL, look below:
function linkedinLink(url: string, { title, summary, source }: Options) {
assert(url, 'linkedin.url');
return (
'https://linkedin.com/shareArticle' +
objectToGetParams({ url, mini: 'true', title, summary, source })
);
}
did anyone find a solution for this??
did anyone find a solution for this??
This package isn't maintained anymore - just use this snipper (all of the other properties documented in the LinkedIn share button are deprecated
href={https://www.linkedin.com/shareArticle?mini=true&url=${props.itemUrl}
}
I can't quite get this to work. I get "Something went wrong, Refresh the page, Try again". Anyone else have any solution for us? Trying the solution above or I was using react-share before that.