Er Mayur Mulay
Er Mayur Mulay

Reputation: 19

Trying to access Facebook friendlist, but getting a empty friends list

FB.api('/me', function(response) {
    FB.api(response.id+'/friends', function(response) {
        for (var i=0; i < response.data.length; i++) { 
            FB.api('/'+response.data[i].id, function(response) {
            {

            }
            });
        }         
    });
});

not able to get any list response.data[i].id the length is zero

Upvotes: 0

Views: 49

Answers (1)

Tobi
Tobi

Reputation: 31479

The call to /me/friends will only return the friends which are also using your app, not all friends.

See

Upvotes: 1

Related Questions