gpt4 book ai didi

iOS9 Facebook登录canOpenURL错误

转载 作者:搜寻专家 更新时间:2023-10-31 08:08:28 24 4
gpt4 key购买 nike

我在使用 iOS9 和 Xcode7 时遇到 Facebook SDK 4.6 的问题。

在设备上进行测试时,单击登录按钮时没有任何反应,在 iOS 模拟器中,我收到错误。

2015-10-01 17:12:32.197 TestProject[32112:797172] -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

在我的 plist 文件中,我包含了以下内容

<key>NSAppTransportSecurity</key>
<dict>
<!--Include to allow all connections (DANGER)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

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


<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb{FACEBOOK_APP_ID}</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>{FACEBOOK_APP_ID}</string>
<key>FacebookDisplayName</key>
<string>{Your App Name}</string>

最佳答案

这只是一个运行时警告,让您知道手机上没有安装处理该方案的应用程序。

Facebook 的文档甚至对此有注释:

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

https://developers.facebook.com/docs/ios/ios9

您可以分享您的 AppDelegate 代码和您尝试登录的代码吗?也许那里有什么……

关于iOS9 Facebook登录canOpenURL错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32883802/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com