iOS上的com.facebook.sdk错误2 [英] com.facebook.sdk error 2 on iOS

查看:129
本文介绍了iOS上的com.facebook.sdk错误2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可在iOS和Android上运行的Phonegap应用程序。该应用有一个Facebook登录功能,直到前几天才有效。我们的一些beta测试人员报告了操作无法完成com.facebook.sdk错误2错误。这些测试人员的设备有所不同:iPhone 5,iPhone 4s,iPod Touch,iOS 5.1.1和iOS 6.0。



我们使用最新的Facebook SDK和Phonegap Facebook登录插件( https://github.com/davejohnson/phonegap-plugin-facebook-connect/ )。



我做了一些研究,发现以下原因可能会发生这种错误:



    $ b $在我的Facebook应用程序的设置中,我的info.plist文件中的b
  • BundleIdentifier和BundleURLName与Native iOS应用下的Bundle ID不匹配。

  • 该应用仍处于沙箱模式

  • 该应用在Facebook设置中被禁用(设备的设置 - > Facebook - >允许这些应用使用您的帐户)。

  • iOS 6.0不允许同时询问读写权限(不知道我是否拥有此权限)。



以下情况如下:





这是一个非常不一致的错误(在我的情况下)。如果我在允许这些应用程序使用您的帐户中关闭应用程序(在我的情况下该应用程序列在那里),我本人只能重现错误,但是我可以通过再次允许应用程序轻松修复错误。目前,大多数测试人员没有这个错误(不再),但错误仍然存​​在于iPod(应用程序未列在允许这些应用程序使用您的帐户中)。



有没有人知道为什么我有这个错误?

解决方案

:com.facebook.sdk错误2可以翻译成一些事情。我正在寻找一些Facebook SDK错误翻译表,但我找不到一个。在我的情况:
com.facebook.sdk错误2发生,因为连接超时。遇到这个错误的用户有一个糟糕的网络/ WiFi连接



我们实施了一个错误记录系统,每当系统登录到Facebook时发生错误,都会记录错误记录。在这些日志中,我们可以看到一个com.facebook.sdk错误2发生了很多,但是每次用户在几秒钟后再次尝试登录时就会被解决。



这可能是由于我无法找到正确的文档,但我仍然对这些SDK错误的模糊性感到非常失望。有很多关于权限询问的文档(可能导致com.facebook.sdk错误2),但显然这个错误可能是由更多的事情引起的。很高兴看到这个记录在某个地方。


I have a Phonegap app that runs on both iOS and Android. The app has a Facebook login feature which worked until a few days ago. A few of our beta testers have reported an 'The operation couldn't be completed com.facebook.sdk error 2' error. The devices of these testers vary: iPhone 5, iPhone 4s, iPod Touch, iOS 5.1.1 and iOS 6.0.

We use the latest Facebook SDK and a Phonegap Facebook login plugin (https://github.com/davejohnson/phonegap-plugin-facebook-connect/).

I've done some research and found the following reasons why this error could occur:

  • BundleIdentifier and BundleURLName in my info.plist file don't match the Bundle ID under Native iOS app in the settings of my Facebook app.
  • The app is still in Sandbox mode
  • The app is disabled in the Facebook Settings (device's settings -> Facebook -> Allow These Apps To Use Your Account).
  • iOS 6.0 doesn't allow for the asking of read and write permissions at the same time (not sure if I have this right).

The following is the case:

It's a very inconsistent bug (in my case). I can only reproduce the error myself if I switch off the app in 'Allow These Apps To Use Your Account' (in my case the app is listed there), but I can easily fix the error by allowing the app again. At the moment most of the testers don't have this bug (anymore), but the error remains on an iPod (where the app isn't listed in 'Allow These Apps To Use Your Account' either).

Does anyone have any idea why I'm having this bug?

解决方案

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.

这篇关于iOS上的com.facebook.sdk错误2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆