I am using www.oauth.io with javascript to connect to Facebook.
I am trying to retrieve the number of friends for the person that logged in.
I understand that recently Facebook changed their policy and it is not easy to get the friend list. Digging deeper, it seems that they have another way to get the total number of friends, using this field in the /me/friends resuts: response.summary.total_count
Here are some links refering to this feature: http://snowadays.jp/2014/08/2983?lang=en https://github.com/arsduo/koala/issues/394
Tried getting this using oauth.io and I don't get any such value in the result. The result is always empty. (My Facebook connection does work, getting the user id, etc.)
Here is my code:
result.get('/me/friends')
.done(function (response) {
console.log(response);
console.log(response.summary.total_count);
})
.fail(function (err) {
console.log('error: ', err);
});