FBSDK Login Error Code: 308 in Objective-C

The solution below works for iOS9 + running on Xcode 8, for Swift3.0

The steps are

  1. Setup Facebook Launch

FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)

  1. Setup Open Url

    guard let source = options[UIApplicationOpenURLOptionsSourceApplicationKey] as? String else { return false }
    let annotation = options[UIApplicationOpenURLOptionsAnnotationKey] as? String
    return FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: source, annotation: annotation)

  2. Fix Keychain permission issue as shown in the image below

iOS 9 Keychain fix

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)