Facebook Login Error When Facebook App Is Installed On Device

Harish Kamboj Source

I am suffering with Facebook login issue in my android app. If there is no Facebook app installed on android device or I use an emulator, Facebook login works properly. But if Facebook app is installed on Mobile than it gave an error.

Error in facebook lite app

Error in Facebook lite

Error in facebook app

enter image description here

I am using 2 different mobile and both gave same error. I followed this SO question : Android Facebook sample app doesn't login when FB app installed. With this SO Question I understood that this error arise after Generating signed apk in android studio. So I used signed Keystore (.jks) to generate new Key Hash. After generating new key hash I added this in facebook app>Settings>Basic But Still getting same error in Both mobiles. How can I fix this error. Thanks in advance.



answered 2 years ago Marlen #1

You need configure app setting in facebook developer concole and add the generated KeyHash in KeyHash field.

keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | "PATH FOR openssl.exe" sha1 -binary | openssl base64

Password: android

answered 2 years ago Harish Kamboj #2

No need to use android as your password, use that password that created during genrating signed apk

comments powered by Disqus