Error logging in to iOS9 Facebook LoginOpenURL

I have a problem with Facebook SDK 4.6 using iOS9 and Xcode7.

When testing on the device, nothing happens, when I press the login button and in iOS Simulator, I get an error message.

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

In my plist file, I have included the following

 <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> 
+5
source share
1 answer

This is just a launch warning that lets you know that an application that processes this circuit is not installed on the phone.

There is a note about this in Facebook docs:

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

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

Can you share your AppDelegate code and the code you are trying to log into? Maybe there is something there ...

0
source

Source: https://habr.com/ru/post/1232690/


All Articles