0
可能重複:
Facebook how to check if user has liked page and show content?像Facebook的校驗碼
我有代碼:
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是否當前訪客像指定的fanpage(page_id)。
在未來,請用主持人的標誌,以提醒我們重複的問題。謝謝! – BoltClock