我在我的 joomla 模块中使用访问令牌来获取页面/组墙提要帖子以显示在用户网站页面中。用户在他们的 joomla 站点中使用该模块之前由我的 facebook 应用程序从我的站点生成访问令牌。
我想要什么 - “我想在没有用户交互的情况下延长现有未过期/过期 60 天令牌的过期日期”。
我从网络上得到的调用这个 url 令牌可以扩展 -
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
我做了一些测试来扩展令牌并得到了这些结果:(
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 天令牌。