简体   繁体   English

Facebook SDK登录对话框

[英]Facebook SDK Login Dialog

I've got the problem while working with facebook iOS sdk. 我在使用facebook iOS sdk时遇到了问题。 I integrated it with my app and everything works fine except one thing. 我将它与我的应用程序集成,一切正常,除了一件事。

In iOS 11 there is login dialog: 在iOS 11中有登录对话框:
AppName wants to use "facebook.com" to sign in AppName想要使用“facebook.com”登录

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. 我已经走了通过方法调用FacebookSDK和发现,内部_stateFBSDKLoginManagerFBSDKLoginManagerStateStart状态,如果该设备被阻止不落下。 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版修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM