I searched everywhere for an answer, but could not find it.
The problem is this:
- I have an iPhone app (in the AppStore) that uses the Facebook iPhone SDK .
- I use the SDK to authorize the user as follows:
NSArray *permissions = [NSArray arrayWithObjects: @"offline_access", @"publish_stream", @"user_birthday", @"user_hometown", @"user_interests", @"user_location", @"email" ,nil]; [((MyAppDelegate *)AppDelegate).facebook authorize:permissions delegate:self];
In AppDelegate, I have this code:
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [self.facebook handleOpenURL:url]; }
And now:
- The SDK opens Safari and displays the well-known facebook login screen.
- The user clicks the "Allow" button.
- iOS is trying to return to the application.
- But then - BAM! - URGENT! - Before launching the application!
VERY IMPORTANT:
- Users experience this failure ONLY when they first launch the application after installation.
When they reopen the application after a crash, everything works fine and they even logged in - This scenario cannot be played back later, even if the user uninstalls the application and installs it again. this only happens when you first start the first installation.
Actually need help here. 90% of my users get this crash in production.
Thank you very much.
Effie source share