FB.login(function(response) {
console.log('Welcome! Fetching your information.... ');
FB.api(
"/me/friendlists",
function (response) {
if (response && !response.error) {
$.each(response.data, function (key,value) {
//console.log(value.id);
FB.api(
"/"+value.id+"/members",
function (response) {
if (response && !response.error) {
console.log(JSON.stringify(response));
/* handle the result */
}
}
);
});
console.log(JSON.stringify(response));
/* handle the result */
}
}
);
I am Using this code to get friendlist in facebook latest API. That return blank array in return. I got all my FriendList Id. But after call /members that return blank.
I am testing with "Test application and use 'read_custom_friendlists' permission"