facebook-login
A light-weight wrapper for client-side facebook login using promises rather than callbacks.
Features
- Supports all the configuration options that the Facebook Javascript SDK does.
- Promise-based API calls instead of callbacks.
- Surfaces
login
andgetLoginStatus
calls.
Installing
Using npm:
$ npm install facebook-login
Usage
; const api = ; // to trigger the login flowapi; // to check if the user is connectedapi; // to indicate when the SDK is done loadingapi;
Contributing
File an issue or submit a pull-request. Before submitting any pull-requests please ensure you've built the project and run the tests.
To build the project
webpack
Running the tests
karma start
Contribute a change by submitted a pull-request
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
MIT