New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@baladins/tiny-facebook-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baladins/tiny-facebook-wrapper

Simple Facebook API Client

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Install

$ npm install tiny-facebook-wrapper

Get request

var facebook = require('tiny-facebook-wrapper');

facebook.get('/me', {fields : ['name', 'gender']}, function (error, res) {
  if (!error) {
    console.log(res); //json response
  }
});

or

facebook.get('/me/groups', accessToken, function (error, res) {
  if (!error) {
    console.log(res); //json response
  }
});

or

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

Post request

var facebook = require('tiny-facebook-wrapper');

facebook.post('/me/feed', accessToken, {message : 'I love Node'}, function (error, res) {
  if (!error) {
    console.log(res); //json response
  }
});

Delete request

var facebook = require('tiny-facebook-wrapper');

facebook.del(postId, accessToken, function (error, res) {
  if (!error) {
    console.log(res); //json response
  }
});

TODO

Support photo uploading via multipart/form-data

Testing

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

License

MIT

Keywords

FAQs

Package last updated on 31 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc