facebook send dialog prepopulated with text
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 开发者_如何学Csend button
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/
精彩评论