gpt4 book ai didi

swift - 类型 'PFFacebookUtils' 在 swift 上没有成员 'session'

转载 作者:行者123 更新时间:2023-11-28 06:57:24 27 4
gpt4 key购买 nike

我正在尝试使用 Parse 集成 Facebook 登录,但以下代码:var FBSession = PFFacebookUtils.session 给出了错误

Type "PFFacebookUtils" has no member "session"

我正在使用最新的 Parse SDK 和 Facebook SDK,“session”方法是否已弃用或什么?提前谢谢。

最佳答案

The latest API for PFFacebookUtils不显示 session 成员,尽管 older documentation does show it (以及一组截然不同的 API)

最终发生的事情是 Parse 将 FBSession 替换为 FBSDKLoginManageras described in this changelog from 3.x to 4.x .他们确实推荐阅读 "Upgrade the iOS SDK from 3.x to 4.x document" .

关于swift - 类型 'PFFacebookUtils' 在 swift 上没有成员 'session',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33063665/

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