Facebook 7.0.3 for logging in to iOS 9

I have this message in the Xcode log:

-canOpenURL: failed for URL: "fbauth2:///" - error: "This app is not allowed to query for scheme fbauth2"

And my application does not open the Facebook application, but Safari.

And then I have an error in the callback.

(Everything was fine on iOS8)

Here are 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)
+4
source share
2 answers

For iOS 9 (using the Facebook iOS SDK) you have added more keys to info.plist. This error may 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>

Getting started with Facebook

+3
source

, . "", , "" plist ( , ). , Facebook Developers " -", " ". , , .:)

, Q & A on SO , , : Facebook?

0

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


All Articles