Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
ionic login with facebook using firebase

i used to have a working code but recently it is broken with auth() not recognized etc.

current broken code is:

import { Facebook } from '@ionic-native/facebook/ngx'
import { AngularFireAuth } from '@angular/fire/compat/auth';
import * as firebase from 'firebase/app';

constructor(
    private afAuth: AngularFireAuth,
    public fb:Facebook,
  )

login(){
    if (this.platform.is('cordova')) {
      return this.fb.login(['email', 'public_profile']).then(res => {
        const facebookCredential = firebase.auth().FacebookAuthProvider.credential(res.authResponse.accessToken);
         firebase.auth.signInWithCredential(facebookCredential);
      }).catch(err)
    }

in the above code auth() is not recognized

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Did you upgrade to v9 of the Firebase JavaScript SDKs by any chance or to version 7 of AngularFire?

If so, see the AngularFire v7 upgrade guide and the Firebase JS v9 upgrade guide.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!