Login seems to go ok, with the email permission,
however when doing:
var deferred = $q.defer(); $openFB.api({ path: '/me/email'
}).then(function( res ) {
deferred.resolve(res);
//angular.extend(me, {picture: res.data.url});
}).catch(function(err){
console.log(err);
deferred.reject(err);
});
I get an error wrong path.
Ben
/me/email
is not a valid endpoint. This is how you get the email of a user:/me?fields=email
The error (from the API Explorer):