Issue
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.
What i want - "I want to extend the expire date of an existing non-expired/expired 60 days token without user interaction".
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.
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.
Solution
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.
- Get short lived token
- Re-extend
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.
Answered By - phwd
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.