Skip to content

IONISx/node-fbam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-fbam

Facebook Account Management API

What For ?

This component is use to provision, edit, get and delete users via API for facebook workplace

Development

You need to have Yarn installed.

How to use

Initialize the component

Provide endpoint and access token to initialize the component

FbUser.enableIface('endpoint', 'token')

Methods

Search for users

  • FbUser.getUsers() : Will fetch all users
  • FbUser.getUserByUsername('[email protected]') : will fetch the user if exists
  • FbUser.getUserById(12312312332) : will fetch the user if exists

Updating user

  • FbUser.save()

Deleting/Inactivating user

  • FbUser.delete()

Testing

Install gulp:

$ yarn global add gulp-cli

Then install the local dependencies:

$ yarn install

Finally, assess code quality and run unit tests using gulp:

$ gulp test

It is also possible to run specific tests using mocha:

$ mocha test/whatever.test.js

About

Facebook workplace account management API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published