Possible Duplicate:
Facebook how to check if user has liked page and show content?
Ive 代码 :
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.");
}
});
我想检查一下当前访问者, 他们是否已经登录在Facebook上, 是否喜欢被窥视的风扇页面( page_id) 。