简体   繁体   English

没有连接时,Facebook SDK FBLoginView崩溃

[英]Facebook SDK FBLoginView crashes when there's no connection

Yet another issue with the Facebook SDK. Facebook SDK的另一个问题。 I can never get it to work as well as it does in the sample. 我永远无法像样品中那样使它正常工作。 Anyway, my session will be logged out, I turn off wifi etc. and when I hit the Log In button (FBLoginView), the app crashes straight away. 无论如何,我的会话将被注销,我关闭了wifi等功能,当我按下“登录”按钮(FBLoginView)时,应用立即崩溃。 Why doesn't it open up a safari page as it does in the sample, and there Safari will give the user an error saying there's no connection? 为什么它没有像示例中那样打开一个野生动物园页面,并且Safari会向用户显示错误,提示没有连接? Information that may help: I display the FBLoginView on a modalViewController. 可能有帮助的信息:我在modalViewController上显示FBLoginView。 The button works fine when there is a connection. 建立连接后,该按钮可以正常工作。 I get an EXC_BAD_ACCESS error when it does crash and it doesn't point anywhere useful. 当它崩溃时,我得到一个EXC_BAD_ACCESS错误,它没有指向任何有用的地方。 I've tested the samplePorject on the same device that I tested my project on, and the sample behaves as expected, ruling out the OS/Device. 我已经在测试项目的同一台设备上测试了samplePorject,并且该示例的行为符合预期,排除了OS / Device。

Appreciate the help, 感谢帮助,
Regards, 问候,
Mike 麦克风

UPDATE: Here is a picture of the crash: 更新:这是崩溃的图片: 在此处输入图片说明 It's the same crash as I had in another thread where I was getting a crash because I had set Sandboxing to 'On' in the FB developer dashboard. 这与在另一个发生崩溃的线程中发生的崩溃相同,这是因为我在FB开发人员仪表板中将“沙箱”设置为“开”。 Why would I get the same issue when there's no internet? 如果没有互联网,为什么会出现同样的问题? Feels as though this SDK is broken. 感觉好像这个SDK坏了。 Got any ideas? 有任何想法吗?

最新的Facebook SDK 3.5.1中已解决的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM