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

LinkedIn Share Button still not working

Open Ugikie opened this issue 3 years ago • 7 comments

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?

Ugikie avatar Mar 12 '21 20:03 Ugikie

Same Issue. Only link is shared. Cannot share another props.

abhaybriskteq avatar Mar 15 '21 05:03 abhaybriskteq

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

selrond avatar Oct 14 '21 05:10 selrond

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 })
  );
}

chienleow avatar Oct 15 '21 21:10 chienleow

did anyone find a solution for this??

tiffanywgtang avatar Feb 02 '22 19:02 tiffanywgtang

did anyone find a solution for this??

vdavidmarques avatar Nov 01 '22 20:11 vdavidmarques

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}}

image

PeterWCox avatar Apr 10 '23 14:04 PeterWCox

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.

LanceP51 avatar Feb 14 '24 20:02 LanceP51