ionic-team/legacy-ionic-cloud

Native Facebook Auth, $ionicUser does not have additional scope parameters

Opened this issue · 0 comments

I have my facebook native auth est up in my main module like so:

.config(function ($ionicCloudProvider) {
$ionicCloudProvider.init({
"core": {
"app_id": "1235677"
},
"auth": {
"facebook": {
"scope": ["user_birthday", "user_location"]
}
}
});
})

However, when I am looking at my $ionicUser object, it is several information that I am looking for including birthday, location, and user gender. Is this a bug or is this something i am doing wrong?

This is how I am calling it:

$ionicFacebookAuth.login()
.then(function () {
$state.go('dashboard');
})
.catch(function (error) {
console.log(error);
})

When I do get rerouted after facebook auth, however, all the fields are missing on my $ionicUser.