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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:01:33+00:00 2026-05-25T11:01:33+00:00

Is it possible to decrypt Facebook’s new OAuth 2.0 access_token ? I need to

  • 0

Is it possible to decrypt Facebook’s new OAuth 2.0 access_token ?

I need to somehow get user_id and app_id from the access_token.

PS:

I need to get the user_id and app_id ONLY from the access_token as Facebook Linter used to do.

  • 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-25T11:01:34+00:00Added an answer on May 25, 2026 at 11:01 am

    As others have already pointed out, the access_token is a unique random string, so it cannot be decrypted as such. Also, we all know that the user_id and app_id are prerequesites to generate the token in the first place.

    However, let’s assume you stored your token(s) in a database and lost the associated user_id and app_id. In that case, it is a valid question on how to retrieve them having only the token at hand. If your token is still valid, this is possible. If it is expired, you’re out of luck.

    To retrieve the user_id, make a call to:

    https://graph.facebook.com/me?fields=id&access_token=xxx
    

    To retrieve the app_id, make a call to:

    https://graph.facebook.com/app?fields=id&access_token=xxx
    

    In both cases, the associated id’s will be part of the JSON response, regardless of the access_token being an encrypted or unencrypted one.

    Let’s illustrate this with an example. Let’s assume Mark Zuckerberg uses the Graph API Explorer to generate an access_token. Calling the /me endpoint gives you:

    {
      "id": "68310606562"
    }
    

    and calling the /app endpoint gives you:

    {
      "id": "145634995501895"
    }
    

    The ids you were looking for are part of the response.

    Please note that this does not work with the access_token shown on https://developers.facebook.com/apps (not sure if this is a Facebook mistake or intentional). Please use the access_token that your app receives via OAuth.

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

Sidebar

Related Questions

Possible Duplicate: Is it possible to decrypt md5 hashes? i used md5.new() ; md5.update(aaa)
Possible Duplicate: Best way to use PHP to encrypt and decrypt? I am new
Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
Possible Duplicate: Is it possible to decrypt md5 hashes? i have md5 checksum in
Possible Duplicates: Is it possible to decrypt md5 hashes? Is it possible to reverse
Possible Duplicate: Is it possible to decrypt md5 hashes? I hashed data with ComputeHash
Is it possible to encrypt data in ASP and decrypt it in PHP? I
Is it possible to configure the FlexPaper reader to decrypt password-protected PDFs or SWFs?
Possible Duplicate: Is it possible to decrypt md5 hashes? I accidentally encrypted some data

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.