Search code examples
facebookcordova

Facebook API - Friendlist empty result


I'm using Facebook phonegap plugin for my mobile app project. The problem is I get an empty result for friendlist

js

facebookConnectPlugin.api("/me/friends?fields=picture,name", ["public_profile", "user_friends"],function(
        response) {
        console.log(JSON.stringify(response.data))
    }, function(response) {
        console.log(JSON.stringify(response))
    });

result

2014-08-10 01:41:29.700 TypeOut[590:60b] new permissions (
    installed,
    "public_profile",
    email,
    "user_friends"
)
2014-08-10 01:41:29.701 TypeOut[590:60b] Graph Path = /me/friends?fields=picture,name
2014-08-10 01:41:30.292 TypeOut[590:60b] []

How can I fix this?


Solution

  • It will only return friends that are also using the app