gpt4 book ai didi

swift - 更新 Facebook SDK 问题

转载 作者:搜寻专家 更新时间:2023-10-31 19:35:45 24 4
gpt4 key购买 nike

我使用 Facebook SDK 登录功能。在控制台写

Your Facebook SDK is out of date. We recommend upgrading to the latest Version 4.37.0, to ensure your app's performance is not affected and to take advantage of our newest features!

我将 SDK pod 更新到 4.44.1,但此警告仍然存在。任何人都可以帮助我,怎么了?附言我尝试从 Facebook 开发者网站删除 pod 并手动安装 SDK,但没有帮助

最佳答案

我可以在 FBSDKLoginKit 版本 4.38.0 到 4.44.1 上重现同样的问题。

它不影响 SDK 的行为,您可以放心地忽略此日志。
正如在 Github 上讨论的那样:

Facebook SDK for iOS started to send an improper User-Agent header using a wrong format FBiOSSDK.5.x.x instead of a traditional one FBiOSSDK/5.x.x with a slash; I've discovered this by capturing the log message and following the stack trace up to the request data.

This needs to be fixed by the Facebook iOS SDK team.

Edit: as the User-agent composing point in the SDK looks untouched for the last 4 years, I suspect it's some kind of API change which broke support for the non-standard User agent format SDK uses an only accepts User-agents with a / slash. Thus an API error. Reported and waiting for further steps from FB devs.

Edit 2: submitted for fixing; should flawlessly resolve this issue with some future Facebook API fix.

关于swift - 更新 Facebook SDK 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55868291/

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