繁体   English   中英

iOS 9上的Facebook 7.0.3登录问题

[英]Facebook 7.0.3 login issue on iOS 9

我在Xcode的日志中有这条消息:

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

我的应用程序没有打开Facebook应用程序,但Safari。

然后我在回调中出错了。

(在iOS8上一切都很好)

这里所有的日志:

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)

对于iOS 9(使用Facebook iOS SDK),您可以向info.plist添加更多密钥。 此错误可能与此有关。

<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入门

在目录树中查看,并仔细检查您正在修改的plist。 如果您正在运行“测试”,请记住您仍需要更新并添加其他密钥到“主”plist(在祖父下而不是其后代)。此外,注册Facebook开发人员并尝试创建“示例测试版”对于“现有项目”。 这将使您在不遵循传统发展轨迹方面偏离,而不会丢失数据和原始模板。 :)

我在SO上发现这个Q&A非常有用并且可能与你的问题有关: 这个应用程序的开发者还没有为Facebook登录正确设置这个应用程序?

暂无
暂无

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

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