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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:30:08+00:00 2026-05-19T13:30:08+00:00

I have an access token that I stored – I want to use it

  • 0

I have an access token that I stored – I want to use it to post to facebook on behalf of the user. Is there any way to validate that the token is still valid before letting the user post so that I can pop the challenge UI again?

  • 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-19T13:30:09+00:00Added an answer on May 19, 2026 at 1:30 pm

    Are you requesting offline_access? If not, the token will expire, but querying for the token should return the expiration date. You can check it on your side before making the call.

    Validating the user has not removed permissions or validating offline_access I believe would require hitting the Facebook servers. I would just try the post and handle the error if it fails. It’s probably more likely than not that the token is valid.

    By checking before every call, you are incurring a significant penalty (double the work) to handle the infrequent case. You’d still have to prompt them anyway if the access token is invalid, so I’d just handle the error and prompt after.

    Besides, you still have to handle the error anyway, since there is a race condition. You can check the access_token, but in the time between checking and posting, the token could become invalid.

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

Sidebar

Related Questions

I have a database that stores a user's access token (along with some other
I have an app that uses a single-user OAUTH token. I can store the
I have a user table that controls access to a website. We currently have
I am trying to use a stored long-life access token, but after 2 hours
I want to write a Facebook Application that checks a user defined RSS feed
I am using LinkedIn API. I have done all process to retrieve access token.
I have access to a virtual machine via vmware client and want to do
I have Access 2003, and Crystal Reports 10 (the one that comes with VS2008
I have Access table with fields, in which there is some data and path
I have a SQL Server 2008 database. This database has a stored procedure that

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.