![](/img/trans.png)
[英]FB.api('/me/likes/124745260879931', onMyLikesResponse); not working on IE 9
[英]Issues FB.api('/me/likes/
我在使用FB API時遇到問題。
FB.api('/me/likes/pageid',function(response) {
console.log(response.data);
});
我有
Object
category: "Entertainment"
created_time: "2012-09-17T16:56:56+0000"
id: "pageid"
name: "site.com"
但是在一台計算機上,我有未定義的對象{data = [0]}
我在Facebook上都登錄了。 有任何想法嗎?
在FF我有
An active access token must be used to query information about the current user.
您必須指定一個有效的access_token
這是正確的方法
FB.api('/me/likes/pageid', {access_token: "YOUR_ACCESS_TOKEN"}, function(response) {
console.log(response.data);
});
您必須在應用范圍內添加“ user_likes”才能檢索結果
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.