Facebook访问令牌的到期日如何延长? Perl桌面应用 [英] Facebook access token expiration how to get extended? perl desktop app

查看:91
本文介绍了Facebook访问令牌的到期日如何延长? Perl桌面应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Facebook制作了一个Perl脚本,但是一段时间后,或者我注销后,该脚本不起作用.我认为这是由于访问令牌已过期.

I made a Perl script for Facebook but it doesn't work after a period of time, or if I log out. I think this is due to the access token expiring.

有人可以帮助我延长令牌的有效期吗?

Could somebody help me to extend the expiration of the token?

推荐答案

第一,请看这里

,您会发现类似的内容:

and you can find something similar:

 https://graph.facebook.com/oauth/access_token?
     client_id=APP_ID&
     client_secret=APP_SECRET&
     grant_type=fb_exchange_token&
     fb_exchange_token=EXISTING_ACCESS_TOKEN

它将返回令牌.

但是!请确保您两次调用此方法.第一次返回2h expiring令牌.
现在不知道他们怎么做.

But! be sure, that you call this method twice. First time it return 2h expiring token.
Not sure now what they do with this.

这篇关于Facebook访问令牌的到期日如何延长? Perl桌面应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆