I have this message in the Xcode's log :
-canOpenURL: failed for URL: "fbauth2:///" - error: "This app is not allowed to query for scheme fbauth2"
And my app doesn't open the Facebook App, but Safari.
And then I have an error in the callback.
(Everything was ok on iOS8)
Here all the logs :
on clicked btn game over facebook connect
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.TouchInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.TouchInputModule:ProcessTouchEvents()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
2015-09-18 14:42:29.386 numbersAddictL[12643:531372] -canOpenURL: failed for URL: "fbauth2:///" - error: "This app is not allowed to query for scheme fbauth2"
on clicked btn game over facebook connect
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.TouchInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.TouchInputModule:ProcessTouchEvents()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
2015-09-18 14:42:29.391 numbersAddictL[12643:531372] -canOpenURL: failed for URL: "fbauth2:///" - error: "This app is not allowed to query for scheme fbauth2"
-> applicationWillResignActive()
FbLogInWithReadPermissions - Error Response:
The operation couldn’t be completed. (com.facebook.sdk.login error 301.)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
FbLogInWithReadPermissions - Error Response:
The operation couldn’t be completed. (com.facebook.sdk.login error 301.)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
-> applicationDidEnterBackground()
-> applicationWillEnterForeground()
-> applicationDidBecomeActive()
2015-09-18 14:42:39.100 numbersAddictL[12643:531582] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
For iOS 9 (with Facebook iOS SDK ) you have add more keys to the info.plist. This error can be related to this.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
</dict>
</dict>
</dict>
Facebook getting started
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With