Facebook Login in iOS with firebase

Leave Comment
  1. 1

    Facebook login in iOS using firebase Swift 5

    Awesome tutorial. Thank you so much for sharing this tutorial!

    Reply
  2. 1

    Summer

    Excelent, but how do you clear the login cache on exit!? because when you run the App again, press Facebook Login and choose CANCEL it automatically uses the last logged in account info!!

    Reply
    1. 1

      Pushpendra Kumar

      Nice to hear this question, This will help for auto login! If you want to remove the last login from the application on application close then keep the following code inside your AppDelegate.swift optional func applicationWillTerminate(_ application: UIApplication)

      let firebaseAuth = Auth.auth()
      do {
      try firebaseAuth.signOut()
      } catch let signOutError as NSError {
      print (“Error signing out: %@”, signOutError)
      }

      Reply
  3. 1

    jack

    very informative video sir, but you didn’t mention code you wrote in plist?

    Reply
    1. 1

      Pushpendra Kumar

      Hi Jack – for that you can watch this video https://youtu.be/Oq004VptIt4?t=354

      Reply
  4. 1

    ปั้มไลค์

    Like!! I blog frequently and I really thank you for your content. The article has truly peaked my interest.

    Reply
  5. 1

    Jaffer

    please share what you did on info.plist because the app crashing for me in that!!!

    Reply
    1. 1

      Pushpendra Kumar

      Hey, You need to add the App Id into the Info P List. Please get this information from the Official Blog of Facebook.

      Reply

Leave a reply

Your email address will not be published.