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]}