Created
June 4, 2014 18:38
-
-
Save reyramos/0cfd03d68eadcbc04621 to your computer and use it in GitHub Desktop.
Example stream.publish api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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