dsakktdog498483070 2014-09-20 01:04
浏览 41

为什么facebook php sdk没有管理令牌的生命周期?

In the facebook developer docs, the following is stated:

Facebook's official SDKs manage the lifetime of tokens for you. When using iOS, Android or our JavaScript SDK, the SDK will handle making sure that tokens are refreshed before they expire. (https://developers.facebook.com/docs/facebook-login/access-tokens)

So apparently their client-side SDK's proactively handle renewing tokens before they expire, but not their server-side SDK's....(?)

and indeed, I have a website that uses their php sdk - and approximately every 2 hours, I'll try something in my site, and my api call results in a FacebookApiException, "An active access token must be used to query information about the current user." Upon page refresh, the token is apparently renewed and the api calls work again.

Why is this, or more importantly, how can I proactively renew tokens before they expire, when using the php sdk (in order to avoid having a page fail on me once every 2 hours)? I would prefer not to use the javascript sdk

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器