简体   繁体   中英

Facebook Login: -canopenurl issue with facebook sdk?

I'm trying to integrate Facebook Login in my IOS app. The error

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

is suddenly started coming now. My info.plist has following entries

<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

Edit : This is happening just in iphone 6 simulator, rest of the simulators are working fine.

I was having a similar problem. I had been using the FB SDK from 8/13. I switched to the updated version from 9/10. The file downloaded from their developer site is FacebookSDKs-iOS-20150910.zip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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