Skip to content

Instantly share code, notes, and snippets.

@msenkpiel
Created June 19, 2012 10:16
Show Gist options
  • Save msenkpiel/2953383 to your computer and use it in GitHub Desktop.
Save msenkpiel/2953383 to your computer and use it in GitHub Desktop.
Facebook post an Flash Widget
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