0
我在facebook應用程序選項卡中遇到了facebook jql和javascript sdk的問題。如果用戶登錄,那麼我想閱讀,如果用戶是頁面的粉絲。如果是這樣,重定向到一個特定的粉絲頁面,否則重定向到另一個頁面。但由於種種原因,該FQL結果集是空的(但我頁面的管理員,並且它當然風扇;-))的與facebook fql閱讀頁面粉絲混淆
這裏是一個代碼片段:
if (response.status === 'connected') {
// The response object is returned with a status field that lets the app know the current
// login status of the person. In this case, we're handling the situation where they
// have logged in to the app.
FB.api({
method: 'fql.query',
query: 'SELECT uid FROM page_fan WHERE uid=me() AND page_id=188705819498'
}, function(resp) {
if (resp.length) {
self.location.href = 'fanpage.html';
} else {
self.location.href = 'infopage.html';
}
}
);
你有'user_likes'權限嗎? – 2013-05-10 10:21:44