iOS Parse Facebook Login error 308 FBSDKLoginBadChallengeString

后端 未结 21 2442
小鲜肉
小鲜肉 2020-12-13 17:18

I\'m trying to implement Facebook login in my iOS app, using Parse.

let permissionsArray = [\"public_profile\", \"email\"]

PFFacebookUtils.logInInBackgroun         


        
相关标签:
21条回答
  • 2020-12-13 18:20

    Update Facebook SDK to latest version solved this.

    0 讨论(0)
  • 2020-12-13 18:21

    Error code 308 is FBSDKLoginBadChallengeString

    Using a shared instance for the FBSDKLoginManager solves the problem. I created a singleton that makes sure, only one FBSDKLoginManager gets instantiated.

    I assume it has to do with the iOS9 Safari login, not 100% sure though

    0 讨论(0)
  • I've followed the workaround from totvos and its working for me as well when using FBSDKLoginKit 4.7.1 & FBSDKCoreKit 4.8:

    Workaround...get the app built and copied to the phone, and then start the app from the device (not the debugger). Then, attach the debugger to the running process. This seems to get around whatever timing issue is breaking this, and the various keychain operations appear to work correctly while debugging.

    Reference: https://forums.developer.apple.com/thread/4743#85335


    Update:

    This workaround didn't work all the time, so I ended up using @coco's answer above: https://stackoverflow.com/a/31480026/877225

    0 讨论(0)
提交回复
热议问题