This question already has an answer here:
- Facebook - permanent user access token 3 answers
My company has a corporate facebook account where they post event pics in different albums. My requirement is to get all the photos from facebook albums and show in our corporate website. I am able to fetch the photos but the user access token is valid only for 60 days which means every other two months i will have to login into company's corporate facebook account, regenerate the token and update the token in my application.
Is there any way to generate to permanent access token ? or is ther any way to regenerate the token at my application level ( without showing login dialog box) ?
is there any other way to fetch the photos without creating app ?
I followed following steps: https://www.facebook.com/dialog/oauth?client_id=%3CCLIENT_ID%3E&scope=manage_pages&redirect_uri= I got code from this API call. Then I got token as follows : https://graph.facebook.com/oauth/access_token?client_id=&redirect_uri=&client_secret=&code= I verified the token using Access token Debugger. Token is valid for 60 days. To get page token, i used url: graph.facebook.com/me/accounts?access_token= I got token for my app page. I verified this token in tool, Its valid only for 60 days
thanks