Skip to content

bobrik/fb-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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");
  2. Make api calls:

    client.api(method, path, [params object], [callback])

Authors

License

MIT

About

Simple facebook api done right.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published