I am using Facebook login in android.
Code:
callbackManager = CallbackManager.Factory.create();
LoginButton loginButton = (LoginButt
I just fixed it by going to https://developers.facebook.com/apps/ and select my app then
switch to live mode
"from top left beside app ID"
try this, locate your app-debug.apk in android build folder
keytool -printcert -jarfile app-debug.apk | openssl sha1 -binary | openssl base64
paste it in facebook key hashes.
All of the above answers didn't help me, what did was when you use this command
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
to get the Key Hashes you put in facebook configurations.
it will ask you for a password, at first I didn't set any, so the issue happened, when I entered android
as the password. it worked !
I dont know if this will help but from personal experience when you generate the development key you will need to type a password which is "android" and make sure you add the = after the code when you are adding it in the field on developers facebook domain
@Danial answer correct, But I want to add some more in that. This types of error comes only when app your in under development. Follow this link and select your App. Then you can do two things here. From Roles tab you can allow login to your friends only or else select the App Review and make your app public
then any one can able to logged in.
I addition to the other answers please also check that the email of the account being used to log in is verified.