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

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

问题描述

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

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.

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

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:


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

  • 应用程式仍处于沙盒模式

  • 应用程式在Facebook设定中已停用(装置设定 - > Facebook - >允许这些应用程式使用您的帐户)。

  • iOS 6.0不允许同时请求读取和写入权限(不确定我是否具有此权限)。

  • 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 BundleIdentifier and BundleURLName match.
  • The app isn't in Sandbox mode.
  • The app doesn't appear in 'Allow These Apps To Use Your Account' of every user
  • The builders of the Phonegap plugin said to have fixed the iOS 6.0 permissions bug (https://github.com/davejohnson/phonegap-plugin-facebook-connect/pull/216)

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

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?

推荐答案

:a com.facebook.sdk错误2可以翻译成一些东西。我正在寻找某种类型的Facebook SDK错误翻译表,但我无法找到一个。在我的情况:
com.facebook.sdk错误2发生,因为连接超时。发生此错误的用户的网络/ WiFi连接不正常

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.

我们实现了一个错误记录系统,它记录每次在登录Facebook时发生错误时的错误详细信息。在这些日志中,我们可以看到com.facebook.sdk错误2发生了很多,但它是解决每次用户尝试在几秒钟后再次登录。

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.

这可能是因为我无法找到正确的文档,但我仍然非常沮丧,这些SDK错误的模糊。有很多关于权限请求的文档(这可能导致com.facebook.sdk错误2),但显然这个错误可能是由更多的东西造成的。这将是很高兴看到这里记录在某处。

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.

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

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