3.0.0 • Published 4 years ago

@shifang2013/paper-facebook-login v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

<paper-facebook-button>

Build status Published on webcomponents.org

Simple facebook login button

<paper-facebook-login app-id="479069922240685"></paper-facebook-login>

Installation & usage

Install paper-facebook-login with Bower

$ bower i vision-4/paper-facebook-login --save

Import it into the <head> of your page

<link rel="import" href="/bower_components/paper-facebook-login/paper-facebook-login.html">

Then use paper-facebook-login in your project

<paper-facebook-login app-id="[[yourAppId]]"></paper-facebook-login>

Polyfills for cross-browser support

paper-facebook-login relies on emerging standards, for full cross-browser support include the WebComponentsJS polyfill on your page.

<script src="https://unpkg.com/@webcomponents/webcomponentsjs@^1.0.0/webcomponents-loader.js"></script>

Transpiling for IE11 support

Web Components like paper-facebook-login are distributed as ES6 classes, which are supported in all evergreen browsers. To support Internet Explorer 11 you should transpile paper-facebook-login to ES5 and use the webcomponentsjs custom-elements-es5-adapter.js shim.

The easiest way to do this is by including polymer-build in your buildstep of choice. Then just include the ES5 adapter on your page

<script src="https://unpkg.com/@webcomponents/webcomponentsjs@^1.0.0/custom-elements-es5-adapter.js"></script>

MIT © v1s10n_4