【问题标题】:Getting this error in facebook (com.facebook.error.2 )在 facebook 中出现此错误 (com.facebook.error.2 )
【发布时间】:2014-02-22 05:08:34
【问题描述】:

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

【问题讨论】:

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


    【解决方案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.
    

    【讨论】:

    • 删除帐户工作正常,但我不能告诉用户从设置中删除帐户。我正在寻找这个问题。感谢回复@AppleMap
    猜你喜欢
    • 1970-01-01
    • 2013-09-11
    • 1970-01-01
    • 1970-01-01
    • 2020-07-29
    • 2012-10-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多