easyfbsdk
v1.0.10
Published
JavaScript / TypeScript SDK for Facebook for developers
Downloads
63
Readme
easyfbsdk for React and NextJs
JavaScript / TypeScript SDK for Facebook for developers
Features:
- ✨ Facebook async init
- ✨ Facebook async login
Install
npm i easyfbsdk
Quickstart
Invoke the hook:
// app/page.tsx (client)
const fbsdk = useFbSdk({ appId: 'appId', version: 'vX.X' })
const accessWithFacebook = async () => {
const token = fbsdk.login()
}