How we can get access for Ads API?

With the Facebook Graph API, is there a way to get a new access token without needing to re-enter the user's password?

  • My app uses Facebook Connect. When the access token expires, I take the user to the URL described in [1]. Then Facebook shows a page where the user has to enter his password, even though the user has authorized my app before. Is there a way to refresh the access token without a password? [1] http://developers.facebook.com/docs/authentication/

  • Answer:

    While the OAuth 2.0 spec has a "refresh" token call, FB has chosen a different method. You can exchange your token for a long life token (http://developers.facebook.com/docs/howtos/login/extending-tokens/) Once this token expires, you'll have to pass the user through the login flow.

Rajveer Singh Tut at Quora Visit the source

Was this solution helpful to you?

Other answers

Facebook has removed the feature of refresh the access token on the "behalf of" mode. The best and easy way is to redirect the user to facebook login page to re-oauth the app. Find facbook doc here: https://developers.facebook.com/docs/facebook-login/access-tokens#extending

Narendra Singh

Long lived access tokens work differently for a user vs a page.  Even with a long lived user access token you will still be required to reauthorize in the future.

Tommy Inglis

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.