title: facebook login with swift 3
body: <p>please help me with Facebook login</p>
  
  <p>I've started with putting into pod</p>
  
  <pre><code>pod 'FacebookCore'
  pod 'FacebookLogin'
  pod 'FacebookShare'
  and then run pod install
  </code></pre>
  
  <p>after this i've imported this into my viewController</p>
  
  <pre><code>import UIKit
  import FacebookCore
  import FacebookLogin
  
  class ViewController: UIViewController {
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
      let loginButton = LoginButton(readPermissions: [ .publicProfile ])
      loginButton.center = view.center
      view.addSubview(loginButton)
  }
  
      override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
      }
  
  
  }
  </code></pre>
  
  <p>I updated info.plist with Facebook data</p>
  
  <p>how Do i get user basic profile data once user has authorized  app?
  What goes in AppDelegate file?</p>
  
  <p>thanks</p>