title: How to logout user using Facebook authentication using Swift and iOS?
body: <p>I've tried searching around but I can't find the answer to my question.</p>
  
  <p>I'm playing around with this application from github:
  <a href="https://github.com/Yalantis/Koloda/tree/master/Example" rel="noreferrer">https://github.com/Yalantis/Koloda/tree/master/Example</a></p>
  
  <p>I'm using it because I'm doing a project which will use the tile based swiping from this application. </p>
  
  <p>I'm also using firebase. So far, I can add users to my database, so the app and firebase are connected.</p>
  
  <p>I also want users to register/login using facebook.</p>
  
  <p>I have connected my app to facebook and a user can come in and successfully login using facebook authentication. </p>
  
  <p>The problem I am having is logging out.</p>
  
  <p>When I click on the logout button, I want the user to be completely logged out. So there is a logout method that comes with the facebook SDK called logout.
  Here are the relevant parts of my code.</p>
  
  <pre><code>import FBSDKLoginKit
  @IBAction func handleLogout(sender: AnyObject) {
  
      facebookLogin.logOut()
      print("loggedout")
      }
  </code></pre>
  
  <p>So when I click on logout and then click on login again I get this page:</p>
  
  <p><a href="http://imgur.com/owi3zZn" rel="noreferrer">http://imgur.com/owi3zZn</a></p>
  
  <p>I do not want the user to stay authorized after they have clicked on the logout button. How do I make it so that when I click on the logout button, the user is completely logged out from Facebook and then when they click on the login button they have to re-enter their username/password?</p>
  
  <p>I've tried looking around the webz but can't find a solution to my problem, although I'm sure it's something pretty simple, I hope!</p>
  
  <p>Thank you for your help and sorry if the formatting is poor.</p>