Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook send dialog prepopulated with text

Tags:

facebook

I am developing an application where I want to be able to send messages to friends.

I want to display a list of friends and besides each friend there is a button which triggers the send dialog.

But I want the dialog to be prepopulated with the friends's name and a text like: I want to invite you to this event..

How can I do this?

PS: I am not intending to send messages to multiple users at one time, as this is not possible. For each message sent there will be necessary the user hiting the send button

like image 630
Ryan Avatar asked Aug 31 '11 18:08

Ryan


1 Answers

This is not possible, the Send button is designed for sharing URLs and doesn't allow the page owner to set the message which will be shared along with the content, or the intended recipients - it runs in an iframe so the browser security model will prevent you trying to do this manually.

If you want to have users send customised messages, check out the Feed dialog: http://developers.facebook.com/docs/reference/dialogs/feed/

like image 90
Igy Avatar answered Sep 22 '22 21:09

Igy