title: Get email and name Facebook SDK v4.4.0 Swift
body: <p>TL;TR: How do I get the email and name of a user that is logged in on my app using the facebook SDK 4.4</p>
  
  <p>So far I have managed to get login working, now I can get the current access token from anywhere in the app.</p>
  
  <p>How I have my login view controller and facebook login button configured:</p>
  
  <pre><code>class LoginViewController: UIViewController, FBSDKLoginButtonDelegate {
  
      @IBOutlet weak var loginButton: FBSDKLoginButton!
  
      override func viewDidLoad() {
          super.viewDidLoad()
          if(FBSDKAccessToken.currentAccessToken() == nil)
          {
              print("not logged in")
          }
          else{
              print("logged in already")
          }
  
          loginButton.readPermissions = ["public_profile","email"]
          loginButton.delegate = self
  
      }
  
      //MARK -FB login
      func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result: FBSDKLoginManagerLoginResult!, error: NSError!) {
          //logged in
          if(error == nil)
          {
              print("login complete")
              print(result.grantedPermissions)
          }
          else{
              print(error.localizedDescription)
          }
  
      }
  
      func loginButtonDidLogOut(loginButton: FBSDKLoginButton!) {
          //logout
          print("logout")
      }
  </code></pre>
  
  <p>Now on my main view I can get the access token like so:</p>
  
  <pre><code>   let accessToken = FBSDKAccessToken.currentAccessToken()
      if(accessToken != nil) //should be != nil
      {
          print(accessToken.tokenString)
      }
  </code></pre>
  
  <p>How do I get the name and email from the user that is logged in, I see many question and answers using eather an older SDK or using Objective-C.</p>