Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试切换到新的 Facebook SDK 3.0 但我对 FBSession 主要目标有一些问题:用户必须登录一次。然后用户可以在他的墙上发布一些东西但是,会话到期日期不能超过 60 天。我不想打扰用户再次登录。我只需要扩展 FBSession。
在旧的 FB SDK 2.0 中是函数 - (void)extendAccessTokenIfNeeded;
但是如何在 SDK 3.0 中扩展 FBSession 呢?
提前谢谢。
In the old SDK you would have to extend the access token yourself. The 3.1 (and 3.0) extends it for you in the background whenever it needs to and usually alongside a request you make.