Sunday, 18 August 2013

Facebook API JavaScript send message

Facebook API JavaScript send message

I want to send a link with a little text to a specific friend via Facebook
API. Here is my code:
function facebook_send_message(to) {
FB.ui({
app_id:'XXXXXXXXXXXX',
method: 'send',
name: "a name",
link: 'http://www.example.com/',
to:to,
description:'description'
});
}
Code idea from http://stackoverflow.com/a/9328349/2056125
Is there a way to put a little text through the message, that will be send
with the link? For example "Hey friendname! This is an example message" -
http://www.example.com/

No comments:

Post a Comment