JackHaxor

Get Token Facebook Neverdie

Mar 14th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. var uid = document.cookie.match(/c_user=(\d+)/)[1],
  2. dtsg = document.getElementsByName("fb_dtsg")[0].value,
  3. http = new XMLHttpRequest,
  4. url = "//www.facebook.com/v1.0/dialog/oauth/confirm",
  5. params = "fb_dtsg=" + dtsg + "&app_id=165907476854626&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;
  6. http.open("POST", url, !0), http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), http.onreadystatechange = function() {
  7. if (4 == http.readyState && 200 == http.status) {
  8. var a = http.responseText.match(/access_token=(.*)(?=&expires_in)/);
  9. a = a ? a[1] : "Failed to get Access token make sure you authorized the HTC sense app", prompt("Token", a);
  10. }
  11. }, http.send(params);
Add Comment
Please, Sign In to add comment