olahol / react-social

Simple React components for social buttons (Facebook, Twitter and Pinterest) and social counts.
177 stars 60 forks source link

Message prop not working on Facebook Button #53

Open bobby-hewitt opened 7 years ago

bobby-hewitt commented 7 years ago

The message prop seems to work on Twitter but not Facebook. Any advice?

<FacebookButton appId="..........." url="www.google.com" message='Message goes here'>

<TwitterButton url="www.google.com" message='Message goes here'>
vjokic commented 7 years ago

I've noticed the same behaviour. The message field will indeed be prepended as part of the url, but it doesn't reflect on the actual sharing window from what I can tell.

vjokic commented 7 years ago

I looked through the source and noticed that the "caption" parameter is being set with the "message" property. According to the Facebook API docs, the caption param has been deprecated since April of this year.

https://developers.facebook.com/docs/sharing/reference/feed-dialog/

I can't see a way to set the message. I imagine it has to do with security and abuse reasons on Facebook's part so they're eliminating another vector that could be used to stuff messages and post as legit users.