3.6 Facebook Login Setup for Android
Facebook login requires business verification now. So, If you have any organization that completed the business verification process, then you can set up the Facebook login. Otherwise, skip this and disable the Facebook login by following this.
This is turned off by default. You can enable/disable Facebook Login from the lib/configs/feature_config.dart file
Follow the steps below if you want to add the Facebook login to your iOS app:
Go to this βURL.β
Go to My Apps> Create App.
Enter the App name and email and go to the Dashboard tab.
For the next step, you need to generate two hash ids. To do that, run the following commands on the terminal.
Scroll down on the right pane until you reach βAdd a productβ, select Facebook Login
You will be redirected to the quick start page.
Select Android. Skip 1 & 2.
Enter your_package_name in the package option and enter your_package_name.MainActivityβ in the activity option.
Use βandroidβ as a debug password. After that, you will get a hash ID like this.
For the release hash ID, run the following command by replacing your alias key name and Keystore location. You can get these from your aβndroid/key.properties βfile.
After that, you will get another hash ID. Now, copy and paste them into the next steps of the Facebook developer site. Like this,
Skip all the steps by clicking next.
Now go to the settings tab & copy both the app id and app secret key.
Now go to Firebase console > your project > authentication > Sign-in-method and click on Facebook, enable it and paste both app id and app secret key, and save it.
Now go to βandroid/app/src/main/res/values/strings.xml fileβ and change the facebook_app_id and facebook_client_token.
You will get the Facebook client token from https://developers.facebook.com/ > Your_app > Settings > Advance tab.
Last updated