Skip to content

Instantly share code, notes, and snippets.

@Orion98MC
Created September 3, 2011 09:43
Show Gist options
  • Save Orion98MC/1190929 to your computer and use it in GitHub Desktop.
Save Orion98MC/1190929 to your computer and use it in GitHub Desktop.
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