0.1.3 • Published 12 years ago

fb-js v0.1.3

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

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:

  1. Create your client with oauth token:
var fb     = require("fb-js"),
    client = new fb("my fb token");
  1. Make api calls:
client.api(method, path, [params object], [callback])

Authors

License

MIT

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago