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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:56:29+00:00 2026-06-16T03:56:29+00:00

I`m a little bit confused about the Facebook Graph API. First, I created an

  • 0

I`m a little bit confused about the Facebook Graph API.

First, I created an app on the developers page and then I autorized my app with a URL like this:

www.facebook.com/dialog/oauth?client_id=MY_CLIENT_ID&redirect_uri=http://www.facebook.com/connect/login_success.html&type=user_agent

Ok… after this the page returned an URL like this one:

www.facebook.com/connect/login_success.html#access_token=ACCESS_TOKEN&expires_in=5171411&code=CODE

I realized that the ACCESS_TOKEN returned is always the same. So i used to search for users, like this:

graph.facebook.com/search?q=QUERY_SEARCH&type=user&access_token=ACCESS_TOKEN

I believe all the URLs above are correct.

My doubt is: i don’t know how to use the long-live token (actually I dont even know if the returned token is a long-lived one). The same token is always returned for me when I use those URLs, so I always use the same ACCESS_TOKEN.

But as i read on the Facebook Graph page, a token can’t be active forever anymore… they now expire.

How do I know if i have a long live token or not? When a token expire how can I “refresh” it?

I was trying to follow the documentation but I`m totally lost…

developers.facebook.com/roadmap/offline-access-removal/

This page says that exists an “deprecate offline_acess” on the advanced settings menu… but it doens’t!

So… i don’t know how to manage tokens when they expire or how to know if i`m using a long-lived token

  • 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-16T03:56:30+00:00Added an answer on June 16, 2026 at 3:56 am

    You can check when your access token is going to expire on Access Token Debugger.

    You can get long-lived access tokens by using this api where you need to enter the short lived access token.

    https://graph.facebook.com/oauth/access_token?             
        client_id=APP_ID&
        client_secret=APP_SECRET&
        grant_type=fb_exchange_token&
        fb_exchange_token=EXISTING_ACCESS_TOKEN 
    

    where this will return the new long-lived access token. (which will have an expiry period of 2 months.)

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

Sidebar

Related Questions

I am a little bit confused about 2 things. Firstly when I create an
I am little bit confused about this statement that I read in a book
I am little bit confused about following problem & their solutions: i have 2
Started learning Wicket after ASP.NET MVC and feel a little bit confused about managing
I´m a little bit confused by reading all the posts and tutorials about starting
I'm a little bit confused about simple program which I wrote, can You please
I'm a little bit confused about these two terms, can somebody explain what is
I'm novice with both JS and jQuery, and I'm a little bit confused about
I'm using SQLite as my database, and I'm a little bit confused about how
I'm a little bit confused about Git. When I'm looking through the manual it

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.