2
我設置以下權限,無論是在我的身邊和應用的權限頁面:
(注意‘read_stream’)Facebook的:返回「500(內部服務器錯誤),」爲朋友信息請求
<fb:login-button autologoutlink="true" perms="read_stream, user_about_me, user_likes, user_location, user_birthday, user_education_history, user_work_history, friends_about_me, friends_likes, friends_location, friends_birthday, friends_education_history, friends_work_history"></fb:login-button>
請求用戶的個人資料的偉大工程:
FB.api('/me/friends', {
fields: "id,username,name,first_name,last_name,location,link,education,work,statuses.limit(1).fields(message)"
}, function(res){
console.log('FRIENDS', res.data);
});
然而,讓用戶的朋友不起作用一樣。
它給出了一個「500(內部服務器錯誤)」,其中facebook對象返回「未知錯誤」。
FB.api('/me/friends', {
fields: "id,username,name,first_name,last_name,location,link,education,work,statuses.limit(1).fields(message)"
}, function(res){
console.log('FRIENDS', res.data);
});
我追蹤的問題到外地我要求。部分statuses.limit(1).fields(message)
似乎是錯誤的來源,當刪除/me/friends
返回數據。
但我不明白錯誤的原因。
- 它適用於
/me
。 - 根據FB文檔
read_steam
應該是針對用戶的狀態和用戶的朋友的狀態。 - 通過上述字段,API Explorer可以讓我知道朋友的狀態,沒有任何問題。
我做錯了什麼,或者它是一個FB圖形API錯誤?
謝謝。