Created
June 19, 2012 10:16
-
-
Save msenkpiel/2953383 to your computer and use it in GitHub Desktop.
Facebook post an Flash Widget
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
function postWidgetToFeed() { | |
// calling the API ... | |
var obj = { | |
method: 'feed', | |
link: 'https://[URL-TO-PAGE]/app_[APP-ID]', | |
name: 'title', | |
caption: 'caption text', | |
description: 'descritption text', | |
picture: 'https://[PATH]/thumbnail.jpg', | |
source: 'https://[PATH]/widget.swf?json={"foo":"bar"}', | |
redirect_uri:'https://www.facebook.com/' | |
}; | |
function callback(response) {} | |
FB.ui(obj, callback); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment