FBSDK Login Error Code: 308 in Objective-C

前端 未结 18 3380
孤街浪徒
孤街浪徒 2021-01-30 20:13

I keep getting

\"Error Domain=com.facebook.sdk.login Code=308 \"The operation couldn’t be completed. (com.facebook.sdk.login error 308.)\"\"

18条回答
  •  别那么骄傲
    2021-01-30 20:40

    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

提交回复
热议问题