私のアプリでは、アプリを使用してログインしている人のプロフィール写真と友達の名前を表示しようとしています。しかし、エラーが発生します
FB._callbacks.__gcb1({"error":{"message":"Unknown path components: \/friends.getAppUsers","type":"OAuthException","code":2500}});
私のコードは次のとおりです。
function loadFriends() {
//get array of friends
FB.api('/me/friends.getAppUsers', function (response) {
console.log(response);
var divContainer = $('.facebook-friends');
var html = "";
for (i = 0; i < response.data.length; i = i + 4) {
// code to bind profile pic of friends using the app and their names
}
});
}
どうすればこれを解決できますか? 助けてください。
このコードは、「friends.getAppUsers」を「friends」に変更すると機能します。プロフィール写真と名前ですべての友達を取得します。
前もって感謝します。