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).