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

  • Home
  • SEARCH
  • 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 7741647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:04:43+00:00 2026-06-01T09:04:43+00:00

I normally use a dirty method to get my Facebook Graph API token key

  • 0

I normally use a dirty method to get my Facebook Graph API token key in applications that fetches facebook data. I download the Graph API example page at graph dot facebook dot com then I locate the token key in the page. (The account is already connected)

Now, I need to program (for someone else) a commercial application that uses Graph API and I’m afraid such an hacky way could become non-functional if Facebook website changes.

Is there a static URL more common than the example page where the Graph API token_key resides, or do you think my method will be safe for a long time?

[Edit]

Just to comment my question, and the answer to my question:

I was trying to build a desktop application fetching data on Facebook using only Graph Explorer and the Graph API example page instead of doing the web request in the answer. I didn’t want to have a desktop application that depends on a Facebook App so that’s why I was always asking the user to connect via two text boxes (which is against Facebook t&c) then I was downloading the Graph API examples page to get the proper token.

But Graph Explorer and its examples are using a ‘Facebook App’ too. So it’s not clear if the access_token are going to be valid for a long time or not: It’s not a good practice.

The answer is: Redirecting a user to an authentification page then fetching an access token is safer, easy to handle and a lot more stable than connecting a user via text boxes and several WebBrowsers navigation.

  • 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-01T09:04:45+00:00Added an answer on June 1, 2026 at 9:04 am

    You can get an application access token to query public data on Facebook from this URL:

    https://graph.facebook.com/oauth/access_token?type=client_cred&client_id={yourappid}&client_secret={yourappscret}

    You need to create an application on Facebook and pass it’s ID and secret key.

    More information on: http://developers.facebook.com/docs/authentication/applications/

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

Sidebar

Related Questions

I normally use a GET variable i n the URL to determined what data
I normally use only the facebook javascript api, but the login started to give
I normally use scp to copy stuff, but now I'm trying to get used
Currently, I create an object and use its setters to set the get/post data
The LockFile API takes a file handle. I normally use TStream for file access,
My understanding is that Google Analytics (the tool I'd normally use for website analytics)
In C, I normally use the getch() function to wait for a key to
Anything I do in views that would normally use ajax to open up a
Where would I normally use this API? In models, URLs, forms, views.py? Where would
Can anyone help? I normally use server controls i.e Textbox so i can get

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.