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
Methods
Search for users
- FbUser.getUsers() : Will fetch all users
- FbUser.getUserByUsername('test@gmail.com') : 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