iOS Parse Facebook Login error 308 FBSDKLoginBadChallengeString

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

    I'm using

    pod 'FBSDKCoreKit', '~> 4.8.0'
    pod 'FBSDKLoginKit', '~> 4.8.0'
    pod 'FBSDKShareKit', '~> 4.8.0'
    

    ... and had the code 308 problem when I logged out and logged in during the same session. Using [[FBSDKLoginManager alloc] logOut] or [facebookLoginManager logOut] (with a persisted manager) just before calling logInWithReadPermissions: didn't work, but adding

    [FBSDKAccessToken setCurrentAccessToken:nil];
    [FBSDKProfile setCurrentProfile:nil];
    

    before the logInWithReadPermissions: call works ok. (Tested in iOS 9.2.)

提交回复
热议问题