iOS Parse Facebook Login error 308 FBSDKLoginBadChallengeString

后端 未结 21 2452
小鲜肉
小鲜肉 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:08

    It's due to the authenticationChallenge issue when you mistakenly try to login twice simultaneously and then further logins will give you some keychain warning on console while debugging, this error will be noticeable when you will be debugging on device. Without debugging mode you'll not get this error, the reason is keychain will work fine when you are not debugging.

    There are few workarounds for this: 1. Try logging in without debugging mode and once it succeeded you can further login successfully with debugging mode too. 2. Check for error code FBSDKLoginBadChallengeString and call [FBSDKAccessToken setCurrentAccessToken:nil] to clear token and perform login again.

提交回复
热议问题