window.fbAsyncInit = function() {
FB.init({
appId : '********', // App ID
channelUrl : document.location.protocol + '//connect.facebook.net/en_US/all.js', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id;
FB.Data.query(fql_query).wait(function(rows) {
if (rows.length == 1 && rows[0].uid == user_id) {
console.log("LIKE");
$('#container_like').show();
} else {
console.log("NO LIKEY");
$('#container_notlike').show();
} }
只是我需要在没有请求任何访问令牌或权限的情况下检查 Facebook 页面之类的用户,这可能吗???