Firetask uses cordova-plugin-facebook4 to allow authentication and identification of users with Facebook Sign-In for both iOS and Android. Out of the box, you gets email, display name, profile picture url and user id.
Make sure you have before followed all these installing notes
Since social logins requires a long and tedious setup, keep in mind that the lines below are a basic steps to get the login working out on device. The work can be long and tedious if you have not already prepared a deployable environment.
If you are a beginner, we strongly recommend that you practice first with empty applications generated by Ionic CLI.
Go to your app on developers.facebook.com and activate the Facebook Login product with OAuth for browser embedded
These uri can be found at your firebase account.
Go to your app on developers.facebook.com and in the Basic Settings add the Google Play package name for the Android app.
In the same screen you must to add the key hashes described below
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64
keytool -exportcert -alias androiddebugkey -keystore ~\.android\debug.keystore | openssl sha1 -binary | openssl base64
Now you can just paste on key hashes text input, located in android tab of your facebook app settings.
Go to your Firebase account console and fill the fields like in the image below
We use cordova's build.json file to deploy Ionic applications on device.
build.json file located at project root and replace with your own android
$ ionic platform add android // or ios
We do not recommend to install plugins individually because it can break out something in building process of cordova, forcing you to re-add the ionic platform. Anyway for just testing purposes, you can
$ ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="facebook_app_id" --variable APP_NAME="facebook_app_name" $ cordova prepare
If everything went well you can
$ ionic run android // or ios
To get the logs you should navigate to