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
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
Related Q & A:
- What is the best way to get a job on cruise ships without spending money?Best solution by cruiseserver.net
- What's the best way to get a job in a restaurant?Best solution by Yahoo! Answers
- How do I get a New York state driver's license?Best solution by Yahoo! Answers
- Is there a way to get skype messenger on mobile web without downloading anything?Best solution by Yahoo! Answers
- Is there a way to get the Iphone 3GS's compass system on the original iPhone?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.