Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在facebook中获取此错误(com.facebook.error.2)_Ios_Iphone_Facebook_Facebook Graph Api_Ios7 - Fatal编程技术网

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

Ios 在facebook中获取此错误(com.facebook.error.2),ios,iphone,facebook,facebook-graph-api,ios7,Ios,Iphone,Facebook,Facebook Graph Api,Ios7,我正在应用程序中使用Facebook graph Api。我犯了这个错误。在FacebookDeveloper中,在创建应用程序帐户时,我们提供了与应用程序中相同的捆绑包标识符,但我仍然面临这个问题。我之所以面临这个问题,是因为在iPhone中,我们有两种登录类型:一种是通过Go to Setting-->添加您的帐户凭据,另一种是通过Facebook api登录。现在,如果我想打开Facebook,那么我会收到这个错误。如果我从设置屏幕中删除该帐户,那么我的Facebook sdk正在工作。等

我正在应用程序中使用Facebook graph Api。我犯了这个错误。在FacebookDeveloper中,在创建应用程序帐户时,我们提供了与应用程序中相同的捆绑包标识符,但我仍然面临这个问题。我之所以面临这个问题,是因为在iPhone中,我们有两种登录类型:一种是通过Go to Setting-->添加您的帐户凭据,另一种是通过Facebook api登录。现在,如果我想打开Facebook,那么我会收到这个错误。如果我从设置屏幕中删除该帐户,那么我的Facebook sdk正在工作。等待您的回答。

删除帐户可以正常工作,但我无法告诉用户从设置中删除帐户。我正在查找此问题的答案。Thanx for reply@AppleMap
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.