Skip to content

Instantly share code, notes, and snippets.

@reyramos
Created June 4, 2014 18:38
Show Gist options
  • Select an option

  • Save reyramos/0cfd03d68eadcbc04621 to your computer and use it in GitHub Desktop.

Select an option

Save reyramos/0cfd03d68eadcbc04621 to your computer and use it in GitHub Desktop.
Example stream.publish api
var attachment = {
'name':'My Super Cool Website'
,'description':'This is a test of the Facebook Broadcast System. If this was real, you would be reading something useful.'
,'media':[
{
'type':'image'
,'src':'http://superman-header.jpg'
,'href':'http://superman-header.jpg'
}
]
};
FB.ui({
method: 'stream.publish',
message: 'I just found this Super Cool Website!',
attachment: attachment,
user_message_prompt: 'post this to your wall?'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment