Get Facebook Access Token

Get Facebook Access Token By Cookie

Get Rid of Ads!


Subscribe now for only $3 a month and enjoy an ad-free experience.

Contact us at khalil@khalil-shreateh.com

🔑 Extract Your Facebook Access Token from a Session Cookie – Simple Tool & Guide

If you've ever needed a Facebook user access token for Graph API calls but didn't want to go through the full OAuth flow, this tool is for you. It extracts a valid user access token directly from your Facebook session cookie – no App ID, no redirect URIs, no hassle.


📖 What This Tool Does

  1. Paste your Facebook session cookie (the one your browser uses).
  2. Click "Do It!" – the tool sends the cookie to the backend, which extracts and returns your user access token.

Once you have the token, you can use it immediately with Facebook's Graph API to post, read, or manage your data – all without setting up a full OAuth application.


🛠️ How to Use the Tool

1. Get Your Facebook Cookie

The tool needs a valid Facebook session cookie. The easiest way is to install a browser extension that lets you copy cookies:

After installing, go to facebook.com, open the extension, and copy the entire cookie string. It will look something like:

datr=...; c_user=100000003; fr=...;
⚠️ Keep this cookie private – it gives full access to your Facebook session. Never share it with anyone.

2. Paste the Cookie & Click "Do It!"

No App ID needed. Just paste your cookie into the field below, solve the reCAPTCHA, and click the button. The backend will decode your session and return a usable access token.

facebook_access_token.sh

🔑 Facebook Access Token Extractor

Get your user access token from a session cookie – no App ID required.

Use this free extension to get Facebook cookie:
Cookie Viewer – Inspect and Copy Website Cookies

 
$ awaiting input

🔑 What Is an Access Token & Why Do You Need One?

Facebook's Graph API uses access tokens to authenticate requests. A user access token represents a specific user and the permissions they've granted. With a valid token, you can:

  • Post to your timeline (/me/feed)
  • Upload photos and videos
  • Read your profile data
  • Manage pages you administer
  • And much more – depending on the token's scope

Normally, you'd obtain a token through the OAuth redirect flow, which requires a registered app, a redirect URI, and user consent. This tool cuts through all that – if you're already logged into Facebook, your session cookie contains everything needed to derive a valid access token.


📤 Using Your Access Token with the Graph API

Once you have your token, you can start making authenticated requests to the Graph API. For example, to post a link to your feed:

curl -X POST \
  -F "link=https://example.com/" \
  -F "access_token=YOUR_ACCESS_TOKEN" \
  https://graph.facebook.com/me/feed

Or to get your profile information:

curl -X GET \
  -F "access_token=YOUR_ACCESS_TOKEN" \
  https://graph.facebook.com/me?fields=id,name,email

You can also use the token in your own scripts, bots, or automation tools – just keep it secure.

💡 Token expiry – The token you get from this tool is typically short-lived (1–2 hours). You can exchange it for a long-lived token (up to 60 days) using Facebook's official endpoint.

🐞 Debugging Your Access Token

Not sure if your token is valid or what permissions it has? Facebook provides a dedicated Access Token Debugger:

👉 https://developers.facebook.com/tools/debug/accesstoken/

Paste your token into the debugger and you'll see:

  • App ID – which app the token belongs to.
  • User ID – whose account the token represents.
  • Expires – when the token will become invalid.
  • Scopes – the permissions granted (e.g., public_profile, email, publish_video).

You can also debug a token programmatically using the Graph API endpoint:

GET /debug_token?input_token={token-to-inspect}&access_token={app-access-token}

This is useful for automating token checks in your own scripts.


📋 Summary

StepAction
1Copy your Facebook session cookie using a browser extension.
2Paste the cookie into the tool above.
3Click "Do It!" – the tool extracts your access token.
4Copy the returned access token and use it with the Graph API.
5Use the Access Token Debugger to check token validity and permissions.
6Optionally, exchange for a long-lived token if needed.

📌 Important Security Notes

⚠️ Your cookie is the key to your Facebook account – it provides full session access. Never share it with anyone, and only use this tool on trusted devices.
  • The tool does not store your cookie or token – they are used only for the request and discarded.
  • Always use HTTPS when transmitting cookies or tokens.
  • If you suspect your cookie has been compromised, log out of Facebook immediately (this invalidates the session).
  • Facebook's API policies change over time – always refer to the official Graph API Reference for the latest updates.

If you found this app useful

Share it with your friends — and please follow, donate, or contact me here: khalil-shreateh.com/links

Share this page:

Thank you for supporting Khalil Shreateh — your support helps us keep building great tools!