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

Linkedin Share does not work in reactjs. Anyone can confirm? If works, please share code. Thanks

Open nadirhussainnn opened this issue 2 years ago • 4 comments

nadirhussainnn avatar Mar 24 '23 21:03 nadirhussainnn

@nadirhussainnn

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

Thanks @PeterWCox , I will try this.

nadirhussainnn avatar Apr 10 '23 14:04 nadirhussainnn

@PeterWCox , It opens a linkedin window and works well. But On mobile screen it does not pre-fill post content IF Linkedin app is installed on user device. If linkedin app is not installed, it just opens up the linkedin window in browser with post content pre-filled. So how do you think we can handle this? Because we can't forece open the link in browser if apps are installed for particular URLs like linkedin app.

Hope i am clear in my explanation. I would love to hear from you. Thanks

nadirhussainnn avatar Apr 20 '23 18:04 nadirhussainnn

@PeterWCox this url does not works for me.

devamaral2 avatar Jun 29 '23 16:06 devamaral2