Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- var token = this.responseText.match(/accessToken\\":\\"(.*?)\\"/)
- console.clear()
- console.log('Your access token:\n'+token[1])
- }
- };
- xhttp.open("GET", "https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed", true);
- xhttp.send();
- xhttp.onerror = function(e) {
- console.clear()
- console.log('Please navigate to https://m.facebook.com first and try again!')
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement