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 9130867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:02:37+00:00 2026-06-17T08:02:37+00:00

I use Facebook server side login flow to obtain a long-lived access token, which

  • 0

I use Facebook server side login flow to obtain a long-lived access token, which is valid for 60 days. Since I need access to the user’s account all the time (i.e. I always need a valid access token), when the token is near expiration, I ask the user to reconfirm access to my application. The problem is that when the token is not yet expired, Facebook returns the very same token with not extended validity.

For example, a token just issued is valid for 60 days. In three days, the user reconfirms access to my application, but Facebook returns the same token, which is valid for 57 days only. I would like to obtain a fresh one (with 60 days validity) upon each confirmation.

On Stack Overflow, there are several questions about Facebook token validity, none of them, however, discusses this problem.

Thank you in advance.

  • 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-06-17T08:02:38+00:00Added an answer on June 17, 2026 at 8:02 am

    According Facebook’s documentation for extending access tokens, “Apps created from … the server-side Login flow automatically get long-lived User Access Tokens. This long-lived token refreshes and extends each time the user triggers the auth flow.”

    Since this is not happening, you should file a bug with Facebook.

    I would also recommend NOT checking for the access token expiration because an access token can expire for several reasons before the expiration date:

    • User changes password
    • You change your app secret
    • User deletes the app and then comes back to the app

    Instead, you should just check for OAuth errors on every FB api call you make, and then redirect the user to the login flow if you detect an OAuth error, as described in this article on the Facebook Developers Blog on how to handle expired access tokens.

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

Sidebar

Related Questions

I am developing a Facebook app. I have a server side OAuth flow which
What is the difference between the two and when do you use it? https://developers.facebook.com/docs/authentication/server-side/
I'm trying to create a server side access to a user's Facebook resources (photos/albums/etc).
I'm trying to follow the example to create a server side login to Facebook
I'm using Facebook Comments with only access to HTML. No server side scripting. My
I'm trying to make a server-side login process with facebook in my C# MVC
I'm trying to develop a server side login with facebook in my mobile app.
I followed this excellent guide on how to use Facebook login. I modified it
FB.getLoginStatus returns access token and signed request . I've passed them both to server
I would like to use facebook Client-side authentication without the JS SDK to avoid

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.