Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Since facebook has upgraded their api version according to v2.2 no fql query will be use I want to fetch friendlist of user (just name and birthdate) but while fetching the data using

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

}

enter image description here

now from above code its giving me only no of friends in count variable but in array of data variable is blank.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
276 views
Welcome To Ask or Share your Answers For Others

1 Answer

You're not able to get all friends anymore, only the friends which are also using the same app. Furthermore, since the introduction of the Graph API v2.0, all friends_* permissions have been removed.

See

/me/friends returns the user's friends who are also using your app In v2.0, the friends API endpoint returns the list of a person's friends who are also using your app. In v1.0, the response included all of a person's friends.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...