在facebook中获取此错误(com.facebook.error.2)

时间:2014-02-22 05:08:35

标签: ios iphone facebook facebook-graph-api ios7

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

1 个答案:

答案 0 :(得分:1)

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.