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

Sharing to Facebook with a url param

Open Tucker2015 opened this issue 4 years ago • 4 comments

I am trying to share a url from my page which pulls the username and adds it to the url.

When i'm sharing with the Facebook Icon or Messenger I get an error on the share box Screenshot 2021-02-21 at 13 34 03

My code is :

const shareUrl = 'https://live.mixshare.co.uk/stream/' + this.props.match.params.username + '/';

This shareUrl works ok with other icons.

Anyone know how to fix please ?

Tucker2015 avatar Feb 21 '21 13:02 Tucker2015

try console.log that

oleksii-lukin avatar Mar 31 '21 09:03 oleksii-lukin

wt... @llamerr solution can't preview the image when I try to share with facebook?

dimer191996 avatar Oct 19 '21 10:10 dimer191996

@dimer191996 I'm not sure what your problem exactly, but you can try either log what you sharing as I said before, or use fb share debugger tool which may show some additional info like missing og tags or something https://developers.facebook.com/tools/debug/

oleksii-lukin avatar Oct 19 '21 10:10 oleksii-lukin

@dimer191996 Have you fixed that issue of image not previewing. If yes,please help me I have the same issue.

sthadevraj avatar Dec 05 '21 13:12 sthadevraj