[英]invalid scope facebook login ionic firebase
I am developping hybrid app using angularjs ionic and firebase. 我正在使用angularjs ionic和firebase开发混合应用程序。 I try to add login with facebook.
我尝试添加Facebook登录。 This is my code :
这是我的代码:
var auth = $firebaseAuth( ref);
$scope.loginFB = function() {
$cordovaOauth.facebook("MY FACEBOOK_APP_ID", ["My email"]).then(function(result) {
auth.$authWithOAuthToken("facebook", result.access_token).then(function(authData) {
console.log(JSON.stringify(authData));
Popup('Success', JSON.stringify(authData) );
}, function(error) {
Popup('error',error);
});
}, function(error) {
Popup('error',error);
});
}
When i run the code in my device. 当我在设备中运行代码时。 I show this message error :
invalid scope : my email
我显示此消息错误:
invalid scope : my email
How can i fix this problem please. 我该如何解决这个问题。
The scope to request a user's email is "email"
(where you now have "My email"
). 请求用户电子邮件的范围是
"email"
(您现在拥有"My email"
)。 Also see https://www.firebase.com/docs/web/guide/login/facebook.html 另请参阅https://www.firebase.com/docs/web/guide/login/facebook.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.