After updating the Facebook sdk to 3.5, when trying to perform openActiveSessionWithReadPermissions the operation fails. Here is the snippet for opening the session and handling the callback:
[FBSession openActiveSessionWithReadPermissions:@[@"email", @"user_hometown", @"user_location", @"user_birthday"]
allowLoginUI:YES
completionHandler:
^(FBSession *session,
FBSessionState state, NSError *error) {
switch (state) {
case FBSessionStateCreatedTokenLoaded:
case FBSessionStateOpenTokenExtended:
case FBSessionStateOpen:
{
completion(TRUE);
break;
}
case FBSessionStateClosed:
case FBSessionStateClosedLoginFailed:
completion(FALSE);
[FBSession.activeSession closeAndClearTokenInformation];
break;
default:
break;
}
}];
I end up in the FBSessionStateClosedLoginFailed case and I get a FBSKLog as follows:
FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb123456789012345 is not registered as a URL Scheme