QuizHour Doc
Buy NowInstallation PlansSupport
  • Introduction
  • Changelogs
  • Getting Started
  • πŸš€Admin Setup
    • 1. Flutter Installation
    • 2. Code Setup
    • 3. Firebase Setup
      • 3.1 Firestore Database Setup
      • 3.2 Database Security Rules
      • 3.3 Database Index Setup
      • 3.4 Push Notification Setup
      • 3.5 Firebase Storage Setup
    • 4. Code Configs
    • 5. Upload to Firebase Hosting
    • 6. Admin Credentials Steup
    • 7. Conclusion
  • πŸ“±App Setup
    • 1. Introduction
    • 2. Code Setup
    • 3. Firebase Setup for Android
      • 3.1 Android Package Name Setup on Firebase
      • 3.2 Change Package Name Android
      • 3.3 Generate Debug Certificate
      • 3.4 Generate Release Certificate
      • 3.5 Google Sign In Setup for Android
      • 3.6 Facebook Login Setup for Android
      • 3.7 Additional Firebase Setup for Android
    • 4. Firebase Setup for iOS
      • 4.1 iOS Package Name Setup on Firebase
      • 4.2 Change Package Name iOS
      • 4.3 Facebook Login Setup for iOS
      • 4.4 Apple Login Setup
      • 4.5 Additional Firebase Setup for iOS
    • 5. Push Notification Setup
      • 5.1 Android Notification Setup
      • 5.2 iOS Notification Setup
    • 6. Multi-Language Setup
    • 7. Ads Setup
      • 7.1 Admob Setup for Android
      • 7.2 Admob Setup for iOS
    • 8. App Information Setup
    • 9. Change App Name for Android
    • 10. Change App Name for iOS
    • 11. Change App Icon
    • 12. Change Splash Icon
    • 13. Change App Theme Color
    • 14. Run The App
    • 15. Releasing the Android App
    • 16. Releasing the iOS App
  • βš’οΈIn-App Purchase Setup
    • 17. Points Store Setup
      • 17.1 Android Setup
      • 17.2 iOS Setup
      • 17.3 Code Setup for IAP
  • βš’οΈCustomization
    • 1. Customize Intro/On-Boarding Screen
    • 2. Disable Specific Features
    • 3. Import Questions (Bulk Upload)
  • ✨Updates
    • Migrate to the v2.0.0(hotfix-1)
    • Migrate to the v2.0.0
Powered by GitBook
On this page

Was this helpful?

  1. App Setup
  2. 3. Firebase Setup for Android

3.6 Facebook Login Setup for Android

Previous3.5 Google Sign In Setup for AndroidNext3.7 Additional Firebase Setup for Android

Last updated 1 year ago

Was this helpful?

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.

  • Now you have set up Facebook sign-in. To do that, Go to this ​.​

  • 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.

  1. Scroll down on the right pane until you reach β€˜Add a product’, select Facebook Login

  2. You will be redirected to the quick start page.

  3. Select Android. Skip 1 & 2.

  4. Enter your_package_name in the package option and enter your_package_name.MainActivity​ in the activity option.

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
keytool -exportcert -alias androiddebugkey -keystore "C:\Users\USERNAME\.android\debug.keystore" | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" sha1 -binary | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" base64
  1. Use ​android​ as a debug password. After that, you will get a hash id like this.

  1. 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.

keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
  1. After that, you will get another hash id. Now, copy and paste them into the next steps of the Facebook developer site. Like this,

  1. Skip all the steps by clicking next.

  2. Now go to the settings tab & copy both the app id and app secret key.

  3. 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.

  4. 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 > Your_app > Settings > Advance tab.

πŸ“±
https://developers.facebook.com/
URL