我对使用任何形式的FQL都很陌生,抱歉,如果这是一个简单的问题,但我似乎无法解决它。FQL Javascript访问令牌
我有这样的代码,正尝试获取好友列表:
var query = FB.Data.query('SELECT '+response.id+', '+response.name+' FROM friendlist from user where uid=' + response.id);
但响应我不断收到的回复是
“一个积极的访问令牌必须用于查询有关信息当前用户。”
当我拉回来从响应对象/我询问我看到我的所有信息,如位置,姓名,工作等,但我没有看到任何标记访问
的代码开始像这个:
window.fbAsyncInit = function() {
FB.init({appId: '12...0', status: true, cookie: true, xfbml: true});
/* All the events registered */
FB.Event.subscribe('auth.login', function(response) {
// do something with response
login();
});
FB.Event.subscribe('auth.logout', function(response) {
// do something with response
logout();
});
FB.getLoginStatus(function(response) {
if (response.session) {
// logged in and connected user, someone you know
login();
}
});
我该如何获取访问令牌并提供FQL查询?
感谢您的任何建议提前!
谢谢你的好评! – 2011-01-29 23:58:54