简体   繁体   English

SSO登录对话框返回fbDidNotLogin,没有错误指示

[英]SSO login dialog returns to fbDidNotLogin with no indication of error

I have recently created a new Facebook app ID as I'm adding Facebook SSO integration into my app. 我最近创建了一个新的Facebook应用程序ID,因为我正在将Facebook SSO集成添加到我的应用程序中。 My app within Facebook is set to Native iOS and I've included the Bundle ID and a current published app's Apple ID (for testing). Facebook中的我的应用程序设置为原生iOS,我已经包含了Bundle ID和当前发布的应用程序的Apple ID(用于测试)。

I've implemented the SDK as per the instructions (I have two other iOS apps currently using the SDK without issue as well). 我按照说明实现了SDK(我还有两个目前正在使用SDK的iOS应用程序也没有问题)。 All delegate methods and required plist entries are in place for the URL callbacks. 所有委托方法和必需的plist条目都适用于URL回调。

After attempting a login I'm shown the Facebook white screen (just a loading spinner) with blue bar but after 5 seconds it redirects back to my app and hits the fbDidNotLogin delegate method. 尝试登录后,我显示了带有蓝色条的Facebook白色屏幕(只是一个加载微调器)但是在5秒后它重定向回我的应用程序并点击fbDidNotLogin委托方法。 That method doesn't include any sort of retrievable error (at least none that is documented or available to me). 该方法不包括任何类型的可检索错误(至少没有记录或可用的任何错误)。

So at this point I'm at a loss for what might be causing my login to fail. 所以在这一点上,我可能会导致我的登录失败。 Is there any way to get a more detailed error? 有没有办法得到更详细的错误? Or has anybody else run into this same problem? 或者还有其他人遇到同样的问题吗?

I had the same issue. 我遇到过同样的问题。 Solved this by changing two items in the Facebook app settings: 通过更改Facebook应用设置中的两项来解决此问题:

  1. Configured for iOS SSO set to enabled 配置为iOS SSO设置为启用
  2. Updated the iOS Bundle ID so that it matched by bundle ID exactly (previously the casing was different) 更新了iOS Bundle ID,使其与bundle ID完全匹配(之前的外壳不同)

Not sure which item fixed it, I largely suspect the first...but worth checking both. 不知道哪个项目修好了,我很大程度上怀疑第一个...但值得检查两者。

Make sure your device's time and date settings are correct. 确保您设备的时间和日期设置正确无误。 I had this happen to me when I recharged and turned on an iPod whose battery had died. 当我充电并打开电池耗尽的iPod时,我发生了这种情况。 The date and time were totally wrong, and when I set them to what they were supposed to be, I got the Facebook login dialog just fine. 日期和时间是完全错误的,当我将它们设置为它们应该是的时候,我得到了Facebook登录对话框。

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

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