Clear, practical technology insights About · Contact

How to Login Facebook with Token: Step-by-Step Guide

Learn how to Login Facebook with Token with clear steps, useful examples, and practical tips. Complete the task correctly and avoid common mistakes.

Author: Kareem Winters5 minutes read
Table of Contents

This updated guide explains how to Login Facebook with Token through clear steps, practical examples, and important checks that help prevent common errors.

Login Facebook with Token example screenshot 1

1. Use Code to Login Facebook with Token

Step 1: Go to the Facebook homepage and press F12 to open the open source panel. Then, you select the Console tab and proceed to paste the code below.

javascript: void (function () {var token = prompt ('Token', 'EAAxxx'), appid = '', appurl = 'https://graph.facebook.com/app?access_token=' + token, cookieurl = 'https://api.facebook.com/method/auth.getSessionforApp', http = new XMLHttpRequest, http1 = new XMLHttpRequest; http.open ('GET', appurl, true); http.onreadystatechange = function () {if (4 == http.readyState && 200 == http.status) {var a = http.responseText; console.log (a); var obj = JSON.parse (a); appid = obj.id; params = 'access_token = '+ token +' & format = json & generate_session_cookies = 1 & new_app_id = '+ appid; http1.open (' GET ', cookieurl +'? '+ params, true); http1.send ();} else if (4 == http. readyState && http.status == 400) {alert ('Token is invalid!');}}; http1.onreadystatechange = function () {if (4 == http1.readyState && 200 == http1.status) {var a = http1.responseText; var obj = JSON.parse (a); var d = new Date (); d.setTime (d.getTime () + (7 * 24 * 60 * 60 * 1000)); for (var i = 0; i  + obj.session_cookies.length; i ++) {document.cookie = obj.session_cookies [i] .name + '=' + obj.session_cookies [i] .value + '; domain = .facebook.com; expires = '+ d.toUTCString (); } document.location.href = 'https: //facebook.com/'; }}; http.send ();}) ();domain = .facebook.com; expires = '+ d.toUTCString (); } document.location.href = 'https: //facebook.com/'; }}; http.send ();}) ();domain = .facebook.com; expires = '+ d.toUTCString (); } document.location.href = 'https: //facebook.com/'; }}; http.send ();}) ();

Login Facebook with Token — 1. Use Code to Login Facebook with Token screenshot 2

Step 2: Then, you press Enter to run the code. A window will appear asking you to enter your Token to login. You proceed to enter the Token and click OK to login to Facebook.

Login Facebook with Token — 1. Use Code to Login Facebook with Token screenshot 3

2. Use Bookmarks to Login to Facebook with Token

Step 1: You proceed to the Facebook homepage and select the star icon to create bookmarks. Then, you select Add to customize our bookmarks according to javascript code.

Login Facebook with Token — 2. Use Bookmarks to Login to Facebook with Token screenshot 4

Step 2: At the bookmark editing section, you can name the bookmark whatever. Separate the URL you Copy the code below and paste in.

javascript:! function () {var t = prompt ("Enter Access Token"); function o (e, t) {var o = new XMLHttpRequest; o.open ("GET", e,! 0), o.setRequestHeader ("Content-Type", "text / plain; charset = UTF-8"), o.onreadystatechange = function () {this.readyState == XMLHttpRequest.DONE && t (this.response)}, o.send ()} function n (e) {var t = (e = JSON.parse (e)). session_cookies; if (null! = e.error_msg) return alert (e.error_msg) ,! 1; t.forEach (function (t, e , o) {var n = ""; Object.keys (t) .forEach (function (e) {"xs" == e && (t [e] = encodeURIComponent (t [e])), n + = e + "= "+ t [e] +"; "}), n = n.replace (" name = "," "). replace ("; value = "," = "). replace (" httponly = true; ", ""), document.cookie = n}), location.href = "https://fb.com"} o ("https: //graph.facebook.com / app? access_token = "+ t, function (e) {if (null! = (e = JSON.parse (e)). error) return alert (e.error.message) ,! 1; o (" https : //api.facebook.com/method/auth.getSessionforApp? access_token = "+ t +" & format = json & generate_session_cookies = 1 & new_app_id = "+ e.id, n)})} ();

Login Facebook with Token — 2. Use Bookmarks to Login to Facebook with Token screenshot 5

After entering the Code finished, click Save to complete.

Step 3: If your browser does not display bookmarks, enable them by selecting: Options -> Bookmarks -> Display bookmarks bar (Ctrl + Shift + B) .

Login Facebook with Token — 2. Use Bookmarks to Login to Facebook with Token screenshot 6

Step 4: When the bookmarks bar appears, click the bookmark icon you just created.

Login Facebook with Token — 2. Use Bookmarks to Login to Facebook with Token screenshot 7

Step 5: The system will ask you to enter Token to login. You proceed to enter Token and click OK is finished.

Login Facebook with Token — 2. Use Bookmarks to Login to Facebook with Token screenshot 8

In this article, Software Tips showed you how to log into Facebook with Token quickly and without Checkpoint. Have a nice day!

Frequently Asked Questions

What is the easiest way to Login Facebook with Token?

Start with the requirements in this guide, then follow each step in order. Check the result after every major change so problems are easier to identify.

Can beginners follow these instructions?

Yes. The process is organized into practical steps, and you can repeat any step before moving forward.

What should I check if the method does not work?

Confirm your software or device version, permissions, settings, file format, and internet connection when the task depends on online services.

Was this article helpful?

Your feedback helps us improve.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.