在没有用户交互的情况下扩展有效/过期的60天访问令牌 [英] Extending valid/expired 60 days access token without user interaction

查看:103
本文介绍了在没有用户交互的情况下扩展有效/过期的60天访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的joomla模块中使用访问令牌,以便在用户网站page.user中显示页面/组别墙上的信息,从而在我们的站点使用该模块之前,从我的网站生成访问令牌。

I use access token in my joomla module to get page/group wall feed posts to show in user website page.user generated access token by my facebook application from my site before using the module in their joomla site.

我想要的 - 我想延长现有的未过期/过期的60天令牌的到期日,而无需用户互动。

What i want - "I want to extend the expire date of an existing non-expired/expired 60 days token without user interaction".

我从web上获取的调用此url令牌可以扩展 -

What i got from web that calling this url token can be extended -

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

一些测试我做了扩展令牌并得到这些结果:(

some test i did to extend token and got these results :(

1.I created short lived access token in client side and extended it to 60 days by the above url 
2.I call above url again by passing that 60 days token as "fb_exchange_token" value to extend token again.I got different 60 days token but issue and expire date is same as before, not extended!!
3.I again repeated test 1 and got a token which also have same issue and expire date! as I wanted to have the expire date extended as my test 2 is failed.

那么我该如何实现我想要的?我有计划,我将在第58天或之后延长60天的令牌。

So how do i achieve what i want?? i have the plan that i would extend the 60 days token on 58th day or after it expired.

推荐答案

60天到期是为了让用户在到期结束时重新访问您的应用程序,并通过登录过程驱动他们。

The whole point of the 60 day expiry is so that users re-visit your application at the end of the expiration and you drive them back through the login process.


  • 获得短暂的令牌

  • 重新扩展

扩展60天而不用用户交互失败整个过程。如果您的用户在60天内未与您的应用程序进行互动,则应用程序的许可将过期。

Extending a 60 day without user interaction defeats the entire process. If your user hasn't interacted with your app in 60 days, the application permission should expire.

这篇关于在没有用户交互的情况下扩展有效/过期的60天访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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