title: Why am I getting com.facebook.sdk.login error 308?
body: <p>I am using Xcode 7.0, testing on iOS 9.0.2 and using Facebook SDK 4.7.0.</p>
  
  <p>When I am logging in a user, most of the time everything works as it should, however sometimes I keep getting this error and I have no idea why! </p>
  
  <blockquote>
    <p>The operation couldn’t be completed. (com.facebook.sdk.login error 308.)</p>
  </blockquote>
  
  <p>After researching I have seen that some people are getting the error when logging in with parse.com's <code>FBUtils</code> and the official <code>FBSDK</code> at the same time, however I am only using <code>FBSDK</code> in my project. </p>
  
  <p>So my question is, why am I getting this error and how do I get rid of it?</p>
  
  <p><strong>Edit - Adding Code</strong></p>
  
  <p>Here is my login logic:</p>
  
  <pre><code>func loginWithFacebook(sender: UIViewController, completion: (profile: FBSDKProfile?, token: String?, cancelled: Bool, error: String?) -&gt; Void ) {
  
      FBSDKProfile.enableUpdatesOnAccessTokenChange(true)
      NSNotificationCenter.defaultCenter().addObserver( sender , selector: "onProfileUpdated:", name:FBSDKProfileDidChangeNotification, object: nil)
      let loginManager = FBSDKLoginManager()
      loginManager.logInWithReadPermissions(["email", "public_profile"], fromViewController: sender) { (result: FBSDKLoginManagerLoginResult!, error: NSError!) -&gt; Void in
          if error != nil {
              print("ERROR")
              completion(profile: nil, token: nil, cancelled: false, error: error.localizedDescription)
              print(error.localizedDescription)
  
          } else if result.isCancelled {
              print("CANCELLED")
              completion(profile: nil, token: nil, cancelled: true, error: nil)
  
          } else {
              print("NO ERROR")
              if FBSDKProfile.currentProfile() == nil {
                  print("PROFILE IS NIL")
                  completion(profile: nil, token: result.token.tokenString, cancelled: false, error: nil)
              } else {
                  print("PROFILE IS NOT NIL")
                  completion(profile: FBSDKProfile.currentProfile(), token: result.token.tokenString, cancelled: false, error: nil)
              }
  
          }
  
      }
  }
  </code></pre>