0
我在使用它登錄時遇到了使用Firebase身份驗證的問題cordova facebook authentication plugin。Firebase Facebook身份驗證錯誤
這裏是我的代碼:
if (window.facebookConnectPlugin && (window.cordova && device.platform == 'iOS') || (window.cordova && device.platform == 'Android')) {
console.log("using the plugin");
facebookConnectPlugin.login(['public_profile'], function(result) {
provider = firebase.auth.FacebookAuthProvider.credential(result.authResponse.accessToken);
provider.addScope('public_profile');
provider.addScope('email');
Auth.firebaseAuth.$signInWithCredential(provider).then(function(authData) {
// User successfully logged in
console.debug(authData);
console.log("logged in ionic");
}).catch(errFn);
}, errFn);
}