tiny-facebook-wrapper

Simple Facebook API Client

Tiny Facebook Wrapper

Tiny Facebook Wrapper is the smallest facebook client with the longest name that you will ever see. It doesn't care about authentication because passport.js can handle this for you. But don't worry, this module supports the basic operations you need for your project.

$ npm install tiny-facebook-wrapper
var facebook = require('tiny-facebook-wrapper');
 
facebook.get("/me", yourToken, {fields : name,gender}, function(errorres) {
  if(!error) {
    console.log(res); //json response 
  }
});

or

facebook.get("/me", yourToken, function(errorres) {
  if(!error) {
    console.log(res); //json response 
  }
});

Post request

var facebook = require('tiny-facebook-wrapper');
 
facebook.post("/me", yourToken, {message : "It's a trap"}, function(errorres) {
  if(!error) {
    console.log(res); //json response 
  }
});
  • Delete method
  • More unit tests

Before running any test, you need to add a valid accessToken which you can get via passport.js or everyauth.

    mocha test/ -R spec //I will hack a makefile for this 

MIT