Skip to content

Instantly share code, notes, and snippets.

@tracend
Created April 20, 2011 02:29
Show Gist options
  • Save tracend/930226 to your computer and use it in GitHub Desktop.
Save tracend/930226 to your computer and use it in GitHub Desktop.
Facebook JS-SDK: Check if the user has liked a page
FB.api({ method: 'pages.isFan', page_id: '{PAGE_ID}' }, function(response) {
if (response) {
alert("user has liked the page");
} else {
alert("user has not liked the page");
}
});
@webhacking
Copy link

@rahulatoz This code not supported v2.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment