title: Issue with FB Login
body: <p>Hellos developers,
  who anyone can help me with one issue , I try to make a Facebook login and after that I want to go to another view.
  But I can't make that happens, could some one can help me with that?
  I put my code below:</p>
  <pre><code>import UIKit
  import FBSDKLoginKit
  import FBSDKCoreKit
  class ViewController: UIViewController , LoginButtonDelegate{
  func loginButton(_ loginButton: FBLoginButton, didCompleteWith result: LoginManagerLoginResult?, 
     error: Error?) {
      loginButton.permissions = [&quot;public_profile&quot;,&quot;email&quot;]
      if error != nil {
          print(&quot;Something is Wrong... \(String(describing: error))&quot;)
          return
      }
      print(&quot;Succesful loged in !&quot;)
  }
  func loginButtonDidLogOut(_ loginButton: FBLoginButton) {
      loginButton.titleLabel?.text = &quot;Adios&quot;
      print(&quot;GoodBye &quot;)
  }
  override func viewDidLoad() {
      super.viewDidLoad()
      let loginButton = FBLoginButton()
      loginButton.center = view.center
      view.addSubview(loginButton)
      loginButton.permissions = [&quot;public_profile&quot;, &quot;email&quot;]
      loginButton.addTarget(self, action: #selector(getUserFBInfo), for: .touchUpOutside)
  }
  @objc func getUserFBInfo(){
      print(&quot;se logro &quot;)
      let token = AccessToken.current
      if token == AccessToken.current {
          performSegue(withIdentifier: &quot;secondActivity&quot;, sender: self)
      }else if token!.isExpired{
          print(&quot;no sucede nada&quot;)
      }
  }
  }
  </code></pre>