fb-js
v0.1.3
Published
Facebook api for node.js done right, built on top of facebook-js.
Downloads
6
Readme
FB.js
Facebook api for node.js done right, built on top of facebook-js.
Usage:
var fb = require("fb-js"),
client = new fb("my fb oauth token");
// regular call without params
client.api("GET", "/me", function(error, result) {
console.log(error);
console.log(result);
});
// open graph api call with param
client.api("POST", "/me/hackmobile:pew", { website: "http://bobrik.name" }, function() {
console.log(arguments);
});
API:
- Create your client with oauth token:
var fb = require("fb-js"),
client = new fb("my fb token");
- Make api calls:
client.api(method, path, [params object], [callback])
Authors
- Ian Babrou [email protected]
License
MIT