@palante/facebook-profile
v1.0.7
Published
ReactJS component for calling facebook for login and profile information.
Downloads
10
Readme
Palante Facebook Profile
This manages you login session with facebook in the app with a JWT token that gets stored in local storage
.
Installation
npm i @palante/facebook-profile --save
Configuration Sample
export default {
tokenName: 'palante-token',
tokenService: 'http://localhost:8080/tokens',
apiKey: 'yourAppId'
}
Instantiate with config
import FacbookProfileConstructor from '@palante/facebook-profile';
const FacebookProfile = FacbookProfileConstructor(config);
Use
Use in a react-bootstrap nav.
Props
- apiKey
- The facebook apiId
- tokenService
- Inject TokenService supplied in the library or one with same api.