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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:19:21+00:00 2026-06-15T06:19:21+00:00

i want to know when the access token will expire i am using httprequest

  • 0

i want to know when the access token will expire

i am using httprequest and getting response from the request that contain the link:

https://developers.facebook.com/tools/debug/access_token?q=ACCESS_TOKEN

and searching for the word Expires and trying to read the string between parenthesis which contain (in about x minutes)

but getting error that logged out can any one help me please ?

string site = "https://developers.facebook.com/tools/debug/access_token?q=";
string token = "";
getRequest = (HttpWebRequest)WebRequest.Create(site + token);
string result;
HttpWebResponse res = (HttpWebResponse)getRequest.GetResponse();
using (StreamReader sr = new StreamReader(res.GetResponseStream()))
{
result = sr.ReadToEnd();
}
Console.WriteLine(result);
Console.WriteLine(result.Contains("Expires"));

i am getting false i need to have a result that contain the string “Expires” and read the time that will expire

  • 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-15T06:19:22+00:00Added an answer on June 15, 2026 at 6:19 am

    You can read the docs at https://developers.facebook.com/docs/howtos/login/debugging-access-tokens/

    Make a request to https://graph.facebook.com/debug_token?input_token=INPUT_TOKEN&access_token=ACCESS_TOKEN

    input_token: the Access Token to debug

    access_token: your App Access Token or a valid User Access Token from a developer of the app.

    If you are using the FB C# SDK (http://csharpsdk.org/)

    var fb = new FacebookClient("app_access_token");
    dynamic result = fb.Get("debug_token", new { input_token = "access_token_to_debug" });
    var appId = result.data.app_id;
    var isValid = result.data.is_valid;
    var application = result.data.application;
    var userId = result.data.user_id;
    var expiresAt = result.data.expires_at;
    var scopes = result.data.scopes;
    

    You can learn how to get the app access token at http://csharpsdk.org/docs/faq I also updated the docs to include debugging the access token.

    Note: When you get the access token from the user make sure to store the expiry dates too, so you can avoid this call.

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

Sidebar

Related Questions

How will I know if my access token has expired. I'm using try and
I just want to know how to access an array in SMARTY that have
Is there a reliable way of getting access token errors from the facebook platform?
I want to know if I can get an Access Token through the FBConnect
i want to know if it possible to access the browser bookmarks via Flash.
I want to know how to pass structures to another function and subsequently access
I don't know if this is possible in MS Access, but what I want
want to know why String behaves like value type while using ==. String s1
I see offline_access is been depreciated. I just want to know,how many days will
I have a website from where I want users to link their GMail account,

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.