iOS 9 Facebook 登录模拟器-canOpenURL : failed for URL: "fbauth2:///" - error: "(null)"

标签 ios facebook facebook-ios-sdk ios9 app-transport-security

我已经更新到 Xcode 7 和最新的 iOS SDK。我在我的应用程序的 plist 中添加了适当的条目:

enter image description here

我的应用程序的 Facebook 登录在设备上运行良好。但是,在 iOS 9 模拟器上,我得到:

-canOpenURL:URL 失败:“fbauth2:///”- 错误:“(null)”

并且登录无效。我看过facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"但我有 FBSDKCoreKit 框架。我也看过 Facebook SDK 4.5 IOS 9但它的答案并没有解决我的问题。

即使我已经在 https://developers.facebook.com/docs/ios/ios9 完成检查 list ,为什么我在模拟器上而不是在设备上收到此错误? ?

最佳答案

为什么我会看到控制台消息,例如“canOpenURL:URL 失败:“fb...://”或?

This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning.

关于iOS 9 Facebook 登录模拟器-canOpenURL : failed for URL: "fbauth2:///" - error: "(null)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40941388/

相关文章:

ios - FOSOAuthServerBundle - 手动生成访问 token

ios - 我可以在新的FB对话中预先选择 friend 吗?

ios - 分隔符不工作

ios - 为什么 UITableView 在重新加载数据时会缓存单元格?

android - 无法在 Android 中为 Facebook 检索 https 格式的图像?

javascript - 常量不适用于 Actions 中的 Jest 测试

ios - 呈现 View Controller 的自定义转换不起作用

ios - 在 Swift 中以编程方式将 UIGestureRecognizer 添加到 subview

javascript - 使用 javascript api 显示来自 facebook 的照片?

iOS Facebook sdk 打开相册选择和图像选择屏幕