简体   繁体   English

登录后,Facebook IOS SDK 4.8.0无法返回应用程序

[英]Facebook IOS SDK 4.8.0 not returning to the app after Login

I have integrated Facebook Login to my iOS app which was working fine till yesterday. 我已将Facebook登录集成到我的iOS应用程序中,该应用程序一直运行至昨天。 And today, I found out that it is not returning to the my app. 今天,我发现它没有回到我的应用程序。 I checked with Facebook Debugging where it prints as success for Login Completion and Permission Acceptance. 我查看了Facebook调试,其中打印成功登录完成和权限验收。 But when everything is completed, it does not return to my app. 但是当一切都完成后,它不会返回我的应用程序。

To test if this is issue from Facebook being not responding properly, I downloaded an app from AppStore and tested Facebook Login inside that app, it works perfect. 为了测试这是否是Facebook没有正确响应的问题,我从AppStore下载了一个应用程序并测试了该应用程序内的Facebook登录,它运作完美。 I don't know what the hell is going on in my app. 我不知道我的应用程序到底发生了什么。

In Login Action Add these lines so that Facebook will be opened in popup 在登录操作中添加这些行,以便在弹出窗口中打开Facebook

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
login.loginBehavior=FBSDKLoginBehaviorWeb;  // it open inside the app using popup menu

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

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