Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6712213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:13:59+00:00 2026-05-26T08:13:59+00:00

The new OAuth 2.0 client-side flow provides an access-token with an expiresIn time. Typically

  • 0

The new OAuth 2.0 client-side flow provides an access-token with an expiresIn time. Typically this is 1-2 hours. Users who are playing a game may spend that long playing and they also might play for a while, walk away, and come back 3-4 hours later.

From what I can tell from the documentation, I’m just supposed to handle errors from API calls and if the token fails to work, reload the browser. Well, this just isn’t that great for games, because this might happen at a critical moment.

Even if I set a timer and call FB.getLoginStatus() again, the expiresIn will remain the same, so it’s clearly relative to the initial login time.

Are games just supposed to make all their facebook API calls up-front and then cache all the data? Is there a way to refresh the access_token without reloading the web page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:13:59+00:00Added an answer on May 26, 2026 at 8:13 am

    I did some experiments, and you can just call setTimeout() and pass the expiresIn value from the original getLoginStatus call. Then when it times out if you call getLoginStatus again, it will have been refreshed with a new access token and new expiresIn time. Rinse, repeat.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

New to javascript/jquery and having a hard time with using this or $(this) to
New day, new problem :-) Code: Client Side: void abw_Closed(object sender, EventArgs e) {
in Don Park's example : http://donpark.org/blog/2009/01/24/android-client-side-oauth I am confused about step2. there is such
I am trying to understand OAuth 2.0( SERVER SIDE FLOW ). Lets take simple
class TwitterProfile < ActiveRecord::Base def send_status_update(status_update) if publish? client = Twitter::Client.new( :oauth_token => authentication.token,
new Date(05-MAY-09 03.55.50) is any thing wrong with this ? i am getting illegalArgumentException
I'm trying to upgrade may program to support the new oAuth that Google uses
Is is possible to keep a single OAuth session available across multiple users? My
I'm trying to access an OAuth-protected resource on Google App Engine using a Java/Groovy
I am working from this reference , and trying to implement the OAuth protocol

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.