Reputation: 458
I want to give users a button to send a link via Facebook message to their friends. For dektop devices, there is the send dialog, which works great: https://developers.facebook.com/docs/sharing/reference/send-dialog
As stated in the documentation, it doesn't work on mobile devices and just throws an error. Things get further complicated because some users have the Facebook App installed and some don't.
The perfect solution would be along:
fb://messaging/compose
but could not find a way to prepopulate it with a link. The next best thing would be to share the link, instead of sending a message. I tried http://www.facebook.com/sharer/sharer.php?u=http://www.example.com, but that doesn't open the app, even if it is installed.
Any thoughts would be appreciated.
Upvotes: 2
Views: 374
Reputation: 69
The way to send private messages on your website is making a link going directly to facebook message page.
Check out this answer. They got the same problem. URL to compose Facebook email/message (compose email via URL-params)
Upvotes: 1