Skip to content

Instantly share code, notes, and snippets.

@Gawyn
Created May 29, 2013 09:11
Show Gist options
  • Save Gawyn/5669000 to your computer and use it in GitHub Desktop.
Save Gawyn/5669000 to your computer and use it in GitHub Desktop.
Feed Dialog for Facebook
function postToFeed() {
var obj = {
method: 'feed',
link: 'http://playfulbet.com',
picture: '#{image_url("favicon.png")}',
name: 'Playfulbet',
description: '¡Playfulbet es el mejor juego deportivo de Facebook!'
};
function callback(response) {
# Do whatever you want
}
FB.ui(obj, callback);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment