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

Leave a reply

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