Facebook Login
To setup Facebook Login for your apps, you need to create a Facebook Developer Account at https://developers.facebook.com.
Installing Facebook Plugin for Cordova
This plugin is a fork of the official plugin for Facebook in Apache Cordova that implements the latest Facebook SDK.
Source: https://www.npmjs.com/package/cordova-plugin-fbsdk
Known Issue: https://github.com/facebook/facebook-android-sdk/issues/1191
Fixed:
-
Please install the Android build tools version 30.0.3.
Setting up the required variables
| Variable | How to find |
|---|---|
APP_ID | Settings -> Basic -> App ID |
APP_NAME | Settings -> Basic -> Display name |
CLIENT_TOKEN | Settings -> Advanced -> Client token |
Generating the key hashes for development (Android)
1. Get your app SHA1 key by running gradle signingReport.
SHA1
A9:3A:F5:45:68:EA:80:66:27:7D:C2:83:DD:9D:EB:5B:5C:02:92:EB
2. Remove the ":" separator from the key.
SHA1 (Without separator)
A93AF54568EA8066277DC283DD9DEB5B5C0292EB
3. Find any free Hex to Base64 converter.
Base64
qTr1RWjqgGYnfcKD3Z3rW1wCkus=
Alternative:
http://tomeko.net/online_tools/hex_to_base64.php
How to test
- Android: assign a tester in development mode.
- iOS: switch to live mode (somehow the facebook login is not working in development mode).