Ionic Firebase social login help
-
@oditha said in Ionic Firebase social login help:
Me kotasa add karagen passe ionic serve run karama blank black page ekak enne browser eket
private google: GooglePlus
Meka constructor ekata dammama blank screen.
-
@oditha said in Ionic Firebase social login help:
@oditha said in Ionic Firebase social login help:
Me kotasa add karagen passe ionic serve run karama blank black page ekak enne browser eket
private google: GooglePlus
Meka constructor ekata dammama blank screen.
app.module.ts eka provider add karala me issue eka fix karagatta.
-
@dev_lak said in Ionic Firebase social login help:
@oditha oka balal kynna bro, wadanm fb code ekath dannam, Ionic version eka mkkda use krna?
@dev_lak Bro google native popup eka completed. facebook ekaat help ekak denanna puluwanda?
-
@oditha na bn, mukut ehma danna onnha, mage wada bn mn oka use krnne
-
@dev_lak meka hari brother mn wade hariyata karagatta. facebook eken native popup eka ganna ekatat help ekak denna puluwanda?
-
@oditha elakiri, mn code eka dannm eketh
-
@oditha Auth Service
// Facebook Login fbLogin() { return this.fb.login(['email']); } // Callback method for Facebook Login onFbLoginSuccess(res: FacebookLoginResponse) { const credential = auth.auth.FacebookAuthProvider.credential(res.authResponse.accessToken); return this.ngFireAuth.signInWithCredential(credential); }
Login Page
this.auth.fbLogin() .then((response: FacebookLoginResponse) => { this.auth.onFbLoginSuccess(response) .then(user => { console.log(user.user) }) .catch(error => { this.util.presentToast('Authentication Failed'); console.log(error); }); }) .catch(error => { console.log(error); this.util.presentToast(error); this.dismissLoading(); })
-
@dev_lak thank you very much, brother
-
@dev_lak said in Ionic Firebase social login help:
Auth Service
Auth Service ekedi api facebook ekata sambanayen plugins use karanwada? import statement thiyenwada?
-
@oditha ow facebook plugin eka danna one
-
hri bro. man try karannam.. thanx