Star Follow @1000ch
GitHub # facebook-button ![GitHub Actions Status](https://github.com/1000ch/facebook-button/workflows/test/badge.svg) Facebook button as Web Components. ## Install Using npm: ```bash $ npm install facebook-button ``` ## Usage Import and register scripts. ```html ``` Just put `` and `` element in your HTML. ```html ``` ### `FacebooLikeButton` - `href`: required string, URL to like or share - `layout`: string, must be either `button_count`, `button` or `box_count`, default to `button` - `size`: string, must be either `small` or `large`, default to `small` - `width`: number, width of `` - `action`: string, `like` or `recommend`, default to `like` ### `FacebookShareButton` - `href`: required string, URL to like or share - `layout`: string, must be either `button_count`, `button` or `box_count`, default to `button` - `size`: string, must be either `small` or `large`, default to `small` - `width`: number, width of `` ## Demo ## License [MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)