I\'m trying to implement Facebook login in my iOS app, using Parse.
let permissionsArray = [\"public_profile\", \"email\"]
PFFacebookUtils.logInInBackgroun
Update Facebook SDK to latest version solved this.
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
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