gpt4 book ai didi

ios - Facebook SDK 4.4.0 logInWithReadPermissions无法在iOS 9的iPhone上使用

转载 作者:行者123 更新时间:2023-12-01 17:50:52 25 4
gpt4 key购买 nike

我在iOS上使用facebook sdk 4.4.0,并且在iOS 9上使用iphone6。logInWithReadPermissions什么都不做。也没有错误。在带有ios8。*的iPhone上,它绝对可以正常工作。非常感谢您的帮助。请帮助大家。

最佳答案

iOS 9中有一些更改,需要您做一些工作才能使Facebook SDK正常运行。 Facebook developer page包含有关如何使其与iOS 9一起使用的说明。

本质上,将SDK更新到v4.6。将此添加到应用程序的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>

和:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>

关于ios - Facebook SDK 4.4.0 logInWithReadPermissions无法在iOS 9的iPhone上使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31731929/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com