简体   繁体   English

Facebook登录:与facebook sdk的canopenurl问题?

[英]Facebook Login: -canopenurl issue with facebook sdk?

I'm trying to integrate Facebook Login in my IOS app. 我正在尝试将Facebook登录集成到我的IOS应用程序中。 The error 错误

-canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" -canOpenURL:URL失败:“fbauth2:///” - 错误:“(null)”

is suddenly started coming now. 现在突然开始了。 My info.plist has following entries 我的info.plist有以下条目

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

and

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

It was working fine some time back. 一段时间后工作正常。 I tried to logout and login again but it won't login now. 我尝试注销并再次登录,但现在无法登录。

PS I'm trying to login on ios simulator of xcode PS我正在尝试登录xcode的ios模拟器

Edit : This is happening just in iphone 6 simulator, rest of the simulators are working fine. 编辑:这只发生在iphone 6模拟器中,其余的模拟器工作正常。

I was having a similar problem. 我遇到了类似的问题。 I had been using the FB SDK from 8/13. 我从8/13开始使用FB SDK。 I switched to the updated version from 9/10. 我从9/10切换到更新版本。 The file downloaded from their developer site is FacebookSDKs-iOS-20150910.zip 从他们的开发者网站下载的文件是FacebookSDKs-iOS-20150910.zip

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

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