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!

  2. 1


    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!!

    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)


Leave a reply

Your email address will not be published. Required fields are marked *