I've got the problem while working with facebook iOS sdk. I integrated it with my app and everything works fine except one thing.
In iOS 11 there is login dialog:
AppName wants to use "facebook.com" to sign in
So, if I lock the device when this dialog is on the screen and then unlock it, dialog disappears and I could not login until restart the app because completion of method
- (void)logInWithReadPermissions:(NSArray *)permissions
fromViewController:(UIViewController *)fromViewController
handler:(FBSDKLoginManagerRequestTokenHandler)handler;
will never be called.
I've walked through the method calls in FacebookSDK and found, that internal _state
of FBSDKLoginManager
is in FBSDKLoginManagerStateStart
state and do not drop down if the device is blocked. So, manager will not allow us to go further.
Is there any way to drop down this state?
这个问题已经报告给Facebook( https://developers.facebook.com/bugs/955483087941463/ ),并且应该使用iOS SDK的4.30.0版修复。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.