Advertisement
hth2813

Untitled

Apr 11th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value,
  2. http = new XMLHttpRequest;
  3. http.open('POST', 'https://www.facebook.com/v1.0/dialog/oauth/confirm');
  4. http.send('fb_dtsg='+fb_dtsg+'&app_id=165907476854626&redirect_uri=fbconnect://success&display=popup&access_token=&sdk=&from_post=1&private=&tos=&login=&read=&write=&extended=&social_confirm=&confirm=&seen_scopes=&auth_type=&auth_token=&auth_nonce=&default_audience=&ref=Default&return_format=access_token&domain=&sso_device=ios&__CONFIRM__=1');
  5. http.onreadystatechange = function(){
  6. if(http.readyState == 4 && http.status == 200){
  7. prompt('Your IOS Token', http.responseText.match(/access_token=(.*?)&/)[1]);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement