ios - 在 facebook 中出现此错误 (com.facebook.error.2 )

标签 ios iphone facebook facebook-graph-api ios7

我在我的应用程序中使用 Facebook 图形 API。我收到这个错误。在 Facebook 开发人员中,在创建应用程序帐户时,我们提供了与应用程序中相同的包标识符,但我仍然面临问题。我遇到这个问题是因为在 iPhone 中我们有两种登录方式,一种是通过转到设置 -> 添加您的帐户凭据,第二种是通过 Facebook api 登录。现在,如果我想打开 Facebook,则会出现此错误。如果我从设置屏幕中删除帐户,那么我的 Facebook sdk 正在运行。等待您的答复。

最佳答案

Turns out: a com.facebook.sdk error 2 can translate into a number of things. I'm looking for some kind of Facebook SDK error translation table, but I'm unable to find one. In my case: **The com.facebook.sdk error 2 happened because the connection timed out. Users who got this error had a bad network/WiFi connection.**

We implemented an error logging system, which logged the error details every time an error happened while logging into Facebook. In those logs we could see a com.facebook.sdk error 2 happening quite a lot, but it being resolved every time the user tried to log in again after a few seconds.

It might be due to my inability to find the right documentation, but I was and still am quite frustrated about the vagueness of these SDK errors. There is a lot of documentation about permission asking (which can result into the com.facebook.sdk error 2), but apparently this error can be caused by more things. It would be nice to see this documented somewhere as well.

**AND OTHER WAY.....**

This happened for an app that I was using. I was able to get around it by going to my iPhone settings, selecting Facebook, tapping on my name, and clicking "delete account."

Afterwards I was able to sign in with the app without issue.

I went back to settings | facebook and resubmitted my credentials.

The app still works fine.

关于ios - 在 facebook 中出现此错误 (com.facebook.error.2 ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21949992/

相关文章:

ios - 是否可以为不同的 iPhone 屏幕设置宽度和高度?

ios - iPhone 7/7plus 上的空 snapshotView

android - 在 FaceBook Android 上分享内容

html - 无法定位 div 第一个按钮 CSS

ios - StackView 中 UIPickerView 的问题

ios - {"msg":"Fence: onClientEventRegionState, invalid state", "regionState":"0"} 在 ios 中

ios - 如何使 Swift 中的所有屏幕保持一致?

ios - 字典数组还是带数组的字典?

iphone - 下载远程 PLIST iOS - 返回 Null

html - 如何制作一个只是链接而不是 iFrame 的 Facebook "Like"按钮?