首页 文章

从Facebook api获取好友列表数据

提问于
浏览
-1

由于facebook已经根据v2.2升级了他们的api版本,所以不会使用fql查询我想获取用户的朋友列表(只是名称和生日)但是在使用时获取数据

FB.api("/me/friends",function (response) {
            if (response && !response.error) {
                /* handle the result */
                console.log(response);
            }
        }
    );

}

enter image description here

现在从上面的代码中,它给我的计数变量只有朋友,但数据变量数组是空白的 .

2 回答

相关问题