Socket
Socket
Sign inDemoInstall

lit-book

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lit-book

Web component allows you to add Facebook page plugin to your site


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Lit Book

NPM version NPM downloads

About

Add Facebook Page Plugin to your site as Web Component

How to Install

First, install the library in your project by npm:

$ npm install lit-book

Or Yarn:

$ yarn add lit-book

Getting Started

Connect libary with project using script tag in HTML:

<script type="module" src="/path/to/lit-book.js"></script>

ES6 import:

import 'lit-book';

Props

NameTypeDefaultDescriptionAvailable options
hrefstring Facebook site URLe.g: https://www.facebook.com/facebook
tabsstringtimelineType of data to displaytimeline, messages, events
widthnumber340Container widthmin. 180, max. 500
heightnumber500Container heightmin. 70
smallHeaderbooleanfalseDisplay small headertrue (small), false (big)
adaptContainerWidthbooleantrueAdapt container width to wrapper sizetrue (enable), false (disable)
hideCoverbooleanfalseHide page background imagetrue (hide), false (show)
showFacepilebooleantrueShow users facepilestrue (show), false (hide)
languagestringen_ENSet frame languagelanguage code
fluidFramebooleantrueUpdate frame size after window resizetrue (enable), false (disable)

Example

<lit-book
  href="https://www.facebook.com/facebook"
  tabs="messages, events"
  width="384"
  smallHeader="true"
></lit-book>

License

This project is licensed under the MIT License © 2019-present Jakub Biesiada

Keywords

FAQs

Last updated on 21 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc