0

Cant figure out how to add FacebookMessengerShareButton from react share. FacebookShareButton works with no issues, but i need Messenger button. According to docs

https://www.npmjs.com/package/react-share

  • I need to add

appId (string): Facebook application id

however, i am not sure what id can i put there since page will be shared by other users.

Demo doesnt work as well. This is the error message:

Sorry, this content isn't available at the moment

Has anyone succeeded in adding facebook messenger share button? Cheers!

Simon Buryat
  • 15
  • 1
  • 7
  • is FacebookShareButton working properly? I mean, if you have different meta og:image and og:title -s on different routes, is facebook sees them differently? – Y U K I M U R A Dec 07 '22 at 12:08
  • FacebookShareButton doesnt need FB user ID. So it works OK. – Simon Buryat Dec 07 '22 at 12:11
  • I know, but I have issue where facebook cant see og:image and og:title because of client side rendering and I cant find solution, can you give me a snippet or a copy of a code where you declare og tags? thanks – Y U K I M U R A Dec 07 '22 at 12:12
  • don think it will help. I just have website page and need to share its url – Simon Buryat Dec 07 '22 at 12:24
  • yeah okay I get it. be aware that in the future, you wont be able to pass different images on facebook using just react, because facebook bots cant see JS. – Y U K I M U R A Dec 07 '22 at 12:28
  • it has nothing to do with images. all i need is to be able to share via fb messenger – Simon Buryat Dec 07 '22 at 12:32

0 Answers0