title: How can I do a Facebook login using Swift 2.0 and iOS 9.1?
body: <p>I have added the latest Facebook SDK to my <code>XCode 7.1</code> project written for <code>iOS 9.1</code>. Unfortunately all I know is <strong>Swift</strong>, not <strong>Objective C</strong>. <a href="https://developers.facebook.com/docs/facebook-login/ios#setup" rel="nofollow">Facebook's developer site documentation</a> only has the documentation in <strong>Objective C</strong>. Every search on Google reveals documentation that is just too old because things have changed so much just in the past 6 months. So I'm kind of lost.</p>
  
  <p>I did all the easy stuff with the plist file.</p>
  
  <p>I was able to use:</p>
  
  <pre><code>import FBSDKCoreKit
  import FBSDKLoginKit
  </code></pre>
  
  <p>I also added:</p>
  
  <pre><code>return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>return FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
  </code></pre>
  
  <p>To my <code>AppDelegate.swift</code> file. This all works and builds successfully.  I have the correct frameworks added as well, obviously. Beyond this point I'm at a standstill because I don't know the syntax for adding a login button, for capturing what I assume would be returned json strings with tokens and other profile information I can use to store in the user's account, etc.</p>