Upload your app to Google Play (signed APK file)
After the app has been submitted and approved, select your app from Google Play Console
Go to Setup->App Integrity->SHA-1 certificate fingerprint
Copy SHA-1 certificate fingerprint
go to your firebase console https://console.firebase.google.com
Select your project
Click on your android app
Click on setting
Click on Add Fingerprint
Paste your SHA1 key (your play console) and click on save
Go to your Facebook developer account https://developers.facebook.com/apps
Select your app
Go to Settings -> Basic -> Android
Generate Key Hashes : copy your SHA1 key(your play console) and paste in below website that give you return Key Hashes(Output (base64):) http://tomeko.net/online_tools/hex_to_base64.php
Copy that Key Hashed and paste it as shown below
Don’t forget to click on save changes
This is the method on how you add your release SHA1 to Play console and Keyhashes to the Facebook Developer Console. Once the process has been followed correctly, The Google and Facebook authentication methods should work fine in your released apps.