Facebook ,how to get list of friends?


#1

Hi
I am using OpenFB micro library ,I want to retrive list of friends with that code
controller(‘friendsCtrl’, function ($scope, ngFB) {
ngFB.api({
path: ‘/me/friends’
}).then(
function (user) {
console.log(user);
$scope.user = user;
$scope.email =user.email;
$scope.gender = user.gender;
},
function (error) {
alert('Facebook error: ’ + error.error_description);
});
});

but i console i get that Object {data: Array[0]}


#2

I too am wanting that feature, but haven’t found anything on this. @urbanek126, have you made any progress?