This file contains hidden or 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
// Once the SDK is initialized and user is logged in (see below), get friends list. | |
getFriendsList = function() { | |
FB.api('/me/friends', function(response) { | |
console.log(response); | |
}); | |
}; | |
// The SDK loaded callback (see below) | |
window.fbAsyncInit = function() { |
This file contains hidden or 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
(function(xhr) { | |
var request = new xhr(); | |
request.open('GET', 'http://www.urldemonflux.com/blah', true); | |
request.onreadystatechange = function () { | |
if (request.readyState === xhr.LOADING) { | |
if(request.status === 200) { | |
window.console.log(request.responseText); | |
} | |
} |
NewerOlder