Created
October 14, 2018 04:54
-
-
Save silverwolfceh/d72dde8ca112d80ac55f16d7d0381ec9 to your computer and use it in GitHub Desktop.
Get Page Manager For IOS token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var uid = document.cookie.match(/c_user=(\d+)/)[1], dtsg = document.getElementsByName("fb_dtsg")[0].value, http = new XMLHttpRequest, app_id=prompt("App id", "165907476854626"), url = "//www.facebook.com/v1.0/dialog/oauth/confirm", params = "fb_dtsg=" + dtsg + "&app_id=" + app_id + "&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=page&access_token=&from_post=1&return_format=access_token&domain=&sso_device=ios&__CONFIRM__=1&__user=" + uid;http.open("POST", url, !0), http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), http.onreadystatechange = function() { if (4 == http.readyState && 200 == http.status) { var a = http.responseText.match(/access_token=(.*)(?=&expires_in)/); a = a ? a[1] : "Failed to get Access token make sure you authorized Page Manager For IOS app", prompt("Token", a); }}, http.send(params); |
Author
silverwolfceh
commented
Oct 14, 2018
- Create new bookmark on browser
- Replace URL of bookmark with above code
- Login to facebook
- Click the bookmark while on facebook
- Click OK
- Copy token EAAxxxxx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment