I am trying to get facebook friends through Facebook Graph API on my Ionic Application. The plugin https://github.com/Wizcorp/phonegap-facebook-plugin was used. When I use friend api, it only returns 12 friends. But in truth, there are more than 3000 friends. How can I get all friends? Here is the code.
function getFBFriends(eCallbackFunc)
{
facebookConnectPlugin.api('/me/friends?fields=uid', [],
function(response)
{
console.log(response);
eCallbackFunc(response, null);
},
function(response)
{
eCallbackFunc(response, 'error');
}
);
}
And the JSON response data is following as below:
How can I get all Facebook friends?