0

Possible Duplicate:
Facebook how to check if user has liked page and show content?

I've code:

FB.api({ method: 'pages.isFan', page_id: 'XXX',}, function(resp) {
    if (resp == true) {
      alert('user_id likes the Application.');
    } else if(resp.error_code) {
      alert(resp.error_msg);
    } else {
      alert("user_id doesn't like the Application.");
    }
});

I want to check current visitors which they already logged in facebook whether like specifed fanpage (page_id).

Community
  • 1
  • 1

1 Answers1

0

This is not trivial to implement.

Have a look at this: https://stackoverflow.com/a/6314568/477176

Community
  • 1
  • 1
Mandar Limaye
  • 1,900
  • 16
  • 24