Facebook Account Management API
This component is use to provision, edit, get and delete users via API for facebook workplace
You need to have Yarn installed.
Provide endpoint and access token to initialize the component
FbUser.enableIface('endpoint', 'token')
- 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
- FbUser.save()
- FbUser.delete()
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