ngx-facebook
This is a wrapper for the official Facebook JavaScript SDK. It makes it easier to use Facebook SDK with Angular by providing components, providers and types.
Installation
1. Install via NPM:
npm i -S ngx-facebook
2. Add the Facebook JavaScript SDK to your index.html
FacebookModule
into your app's root module
3. Import ;
FacebookService
and call the init
method (optional):
4. Inject This method must be called before using login
or api
methods. It is not required for other methods/components.
; ...
Documentation
You can view complete and detailed documentation by visiting https://zyra.github.io/ngx-facebook/.
Example Usage
You can view our example project here and/or view its source code here
Example of login with Facebook
;
Example of sharing on Facebook
; ... shareurl: string
Example of adding a Facebook like button
Example of playing a Facebook video
Basic video component usage:
Advanced video component usage:
;;
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Contribution
- Having an issue? or looking for support? Open an issue and we will get you the help you need.
- Got a new feature or a bug fix? Fork the repository, make your changes, and submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Support this project
If you find this project useful, please star the repository to let people know that it's reliable. Also, share it with friends and colleagues that might find this useful as well. Thank you 😄