title: iOS[Swift] : Parse Facebook Login "Use of unresolved identifier 'permissions'"
body: <p>I"m building an iOS app in swift that has facebook login via parse SDK.</p>
  
  <p>I have gone through the Facebook SDK tutorial for iOS and Parse</p>
  
  <p>Somehow it's throwing this error "Use of unresolved identifier 'permissions'" at <code>PFFacebookUtils.logInWithPermissions(permissions</code></p>
  
  <p><a href="https://parse.com/docs/ios_guide#fbusers-signup/iOS" rel="nofollow">Parse Documentation</a></p>
  
  <p>Here's the code</p>
  
  <pre><code>@IBAction func facebookLogin() {
      PFFacebookUtils.logInWithPermissions(permissions, block: {
          (user: PFUser!, error: NSError!) -&gt; Void in
          if let user = user {
              if user.isNew {
                  println("User signed up and logged in through Facebook!")
              } else {
                  println("User logged in through Facebook!")
              }
          } else {
              println("Uh oh. The user cancelled the Facebook login.")
          }
      })
  }
  </code></pre>
  
  <p>Here's the bridging header file</p>
  
  <pre><code>#import &lt;Parse/Parse.h&gt;
  #import &lt;ParseFacebookUtils/PFFacebookUtils.h&gt;
  #import &lt;FacebookSDK/FacebookSDK.h&gt;
  </code></pre>
  
  <p>Thanks</p>