Created
September 3, 2011 09:43
-
-
Save Orion98MC/1190929 to your computer and use it in GitHub Desktop.
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
var http = require('http'), | |
sys = require('sys'); | |
var options = { | |
host: 'graph.facebook.com', | |
port: 443, | |
path: '/me' | |
}; | |
http.get(options, function(response) { | |
console.log(">>> got response: " + sys.inspect(response)); | |
response.on('data', function(chunk) { | |
console.log(">>> got chunk: " + chunk.toString()); | |
}); | |
}).on("error", function(err) { | |
console.log(">>> got error: " + err.message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment