Facebook iOS SDK - The Facebook app crashes on openActiveSessionWithReadPermissions. My application is hanging at the entrance

I really need help here:

Sometimes (I cannot reproduce it 100%) when I exit:

NSArray *permissions = [NSArray arrayWithObjects:@"email", @"read_friendlists", @"user_photos", @"user_events", nil]; [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:YES completionHandler: ^(FBSession *session, FBSessionState state, NSError *error) { //... }]; 

The Facebook application opens and then crashes, sending NO RESPONSE to My application.

My application then hangs on "Login ..." and presses STUCK from that point.

I know that the FB APP is not my responsibility, but it gives us a big headache here, and I am wondering how best to deal with it. Should I create a Timeout mechanism for logging into Facebook and after that a Timeout My application will try again or prompt the user to enter an email address?

Has anyone already talked about this?

Any tips?

thanks

+4
source share

Source: https://habr.com/ru/post/1483584/


All Articles