Skip to content

Instantly share code, notes, and snippets.

@Ravenna
Created October 29, 2012 19:40
Show Gist options
  • Select an option

  • Save Ravenna/3976039 to your computer and use it in GitHub Desktop.

Select an option

Save Ravenna/3976039 to your computer and use it in GitHub Desktop.
fb
<script>
FB.init({appId: "252314034891861", status: true, cookie: true});
function addToPage() {
// calling the API ...
FB.ui(
{
method: 'pagetab'
},
function(response) {
if (response != null && response.tabs_added != null) {
$.each(response.tabs_added, function(pageid) {
alert(pageid);
});
}
}
);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment