title: Parse Facebook logInInBackgroundWithReadPermissions (Swift)
body: <p>I have set both Parse (1.7.1) SDKs and Facebook(v4) SDKs successfully, set bridging header files and AppDelegate.swift. Now in my ViewController, I am trying to create a Facebook Login and I am trying to use the code given in <a href="https://parse.com/docs/ios_guide#fbusers/iOS" rel="nofollow">'Parse iOS Documentation - Facebook SignUp &amp; Login'</a>. </p>
  
  <pre><code>  PFFacebookUtils.logInInBackgroundWithReadPermissions(permissions, {
       (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>However when I paste it in my ViewController.swift > ViewDidLoad, I am receiving this error:</p>
  
  <pre><code>- Extra argument in call      // for { at the first line
  </code></pre>
  
  <p>Can anyone please help me sort this out?</p>
  
  <p>Edit: The script given has worked for me in terms of syntax, however, now I keep getting "Uh no. The user cancelled the Facebook login." even before it asks for permissions; while the facebook page is still loading..  And the user I am trying is already accepted for this particular app. 
  Take a look:
  <a href="http://imgur.com/5yDs1s1" rel="nofollow">http://imgur.com/5yDs1s1</a></p>