Facebook login library
Using npm:
``shell`
$ npm i -g npm
$ npm i --save facebookloginlibrary
Using yarn:
`shell`
$ yarn add facebookloginlibrary
Options:
`js
{
appId: "your-app-id",
cookie: true,
version: "v7.0"
}
// example
import facebookloginlibrary from "facebookloginlibrary";
const fcb = facebookloginlibrary({
appId: "your-app-id",
cookie: true,
version: "v7.0"
});
fcb.init();
document.getElementById('facebook-button').addEventListener('click', async ()=> {
const loginResponse = await fcb.logInWithFacebook();
});
`
In Vue.js:
`js``