ios - Facebook 登录 : -canopenurl issue with facebook sdk?

标签 ios facebook swift facebook-ios-sdk

我正在尝试将 Facebook 登录集成到我的 IOS 应用程序中。错误

-canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

现在突然开始了。我的 info.plist 有以下条目

<key>LSApplicationQueriesSchemes</key> 
<array>     
<string>fbauth2</string>    
<string>fbapi</string>  
<string>fb-messenger-api</string> 
<string>fbshareextension</string> 
<string>fbauth</string> 
</array>

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

前一段时间它运行良好。我尝试注销并再次登录,但现在无法登录。

附言我正在尝试登录 xcode 的 ios 模拟器

编辑: 这只发生在 iphone 6 模拟器中,其余模拟器工作正常。

最佳答案

我遇到了类似的问题。我从 8 月 13 日开始使用 FB SDK。我从 9/10 切换到更新版本。从他们的开发者网站下载的文件是 FacebookSDKs-iOS-20150910.zip

关于ios - Facebook 登录 : -canopenurl issue with facebook sdk?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32432786/

相关文章:

ios - 我可以在 SwiftUI 中布局后获得 `View` 的位置吗?

在初始化程序中快速复制属性

ios - AVPlayerViewController 点击 "done"关闭到错误的 View Controller

iphone - 设备上的NSdata长度崩溃

ios - Dropbox 错误在设备上打开另一个应用程序,而不是在模拟器上

javascript - Facebook Event.subscribe comments.create 不工作

html - Facebook 和 Twitter 按钮错位

ios - 以编程方式调用 push segue 和 prepareforsegue 方法

ios - 文件管理器在 iOS 7 上不工作

javascript - 始终登录我的 android 和 ios 移动应用程序