0
我正在開發混合應用程序使用angularjs離子和firebase。我嘗試添加Facebook登錄。這是我的代碼:無效範圍Facebook登錄離子firebase
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);
});
}
當我在我的設備中運行代碼。我顯示此消息錯誤:invalid scope : my email
我該如何解決這個問題。