Firebase Facebook登录错误:FIRAuthErrorDomain - 来自Facebook

时间:2016-10-28 17:34:29

标签: ios swift3 firebase-authentication fbsdk

在使用FBSDK实施Facebook登录身份验证后,我一直在尝试在Firebase控制台的Auth标签中查看/获取用户。

我获取fb凭据并将其传递给具有用户和错误参数的FIRAuth。在打印可见性之后,肯定会出现错误,但我正在努力检查它。我尝试了断点并得到了一些看起来像胡说八道的东西(我是初学者,2天前开始使用Swift,2个月前开始编码)。

代码:enter image description here 正如您在日志中看到的那样,print("error above")已被执行。

错误:enter image description here 左边是断点分析的输出。看起来对我和周围的人都是胡说八道:(

此外,您可以在右侧的日志中看到上面的print("credential above")已执行。 credential.description紧挨着它,一个FIRFacebookAuthCredential对象实例。

这让我觉得Facebook Auth已成功发生,但Firebase Auth错误。

对于我可能出错的地方的任何想法都受到热烈欢迎。我完全是Swift和Firebase的新手。

注意: 我安装并导入了所有FBSDK和Firebase依赖项。 我已完成Firebase docs中的所有步骤,包括它引用的Facebook Dev API在线界面上的步骤。所以我认为我已经覆盖了所有api设置。

免责声明:Here's the full code但请注意,它有点令人作呕。

修改

我找到了更详细的错误信息,这有助于调试,就是这个

"Optional(Error Domain=FIRAuthErrorDomain Code=17999 \"An internal error has occurred, print and inspect the error details for more information.\" UserInfo={NSUnderlyingError=0x608000258c60 {Error Domain=FIRAuthInternalErrorDomain Code=3 \"(null)\" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={\n code = 400;\n errors = (\n {\n domain = global;\n message = \"Unsuccessful debug_token response from Facebook: {\\\"error\\\":{\\\"message\\\":\\\"Invalid OAuth access token signature.\\\",\\\"type\\\":\\\"OAuthException\\\",\\\"code\\\":190,\\\"fbtrace_id\\\":\\\"FAA\\\\/****redacted****\\\”}}\”;\n reason = invalid;\n }\n );\n message = \"Unsuccessful debug_token response from Facebook: {\\\"error\\\":{\\\"message\\\":\\\"Invalid OAuth access token signature.\\\",\\\"type\\\":\\\"OAuthException\\\",\\\"code\\\":190,\\\"fbtrace_id\\\":\\\"FAA\\\\/***redacted***\\\”}}\”;\n}}}, error_name=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information.})"

1 个答案:

答案 0 :(得分:2)

我发现在断点self.mind发生了人类无知错误 - 基本上我已经复制到剪贴板******而不是我的fb api密钥的实际数据并且一直在Firebase中使用那些星星控制台验证配置。