I have created an Android application that uses Facebook SDK to make wall posts. It works fine on devices that don't have the native Facebook App installed, but when it is, it throws an Invalid Key error.
I have checked all the settings & keys from my facebook application and my device code twice and all is setup right. What do I need to do to resolve this issue?
You received this error because of wrong hash calculated on your app. During application execution calculated hash value is send to facebook. If value is different from value you set in facebook developer profile - problem. If you cannot calculate correctly - read it from error message and put it to facebook developer profile. I made the same.
This is the problem because of the hash key. You ca find out the hash key of your app from this link
Facebook Integration in Android Application
and can update it in facebook app.
Related
I have created released apk for my android app. I have created the keystore and signed the app with it. Google Plus authentication is working fine but I am facing problems with facebook authentication.
I am getting the following message while trying to authenticate app with facebook...
I have added the provided keyhash to facebook developers' settings. But still I am getting the same error message.
Can anyone tell me how should I solve this issue?
Goto to developer settings for your app on facebook and add the Key Hashes shown in the above error manually under settings>basic>Key Hashes. Then try running your app
Try this link Facebook android app error : Invalid key hash
I had a similar problem and it turned out that there was an upper case letter I which is similar to lower case letter l, inside this link you will find a code that can get the key hash, use Log to show it inside the console and copy paste it, it will do the trick.
I am getting facebook hash key problem for facebook applicxation in cordova facebook connect.
Application is working fine if it does not have the facebook application on mobile or emulator. But with faceboiok application it shopws the hash key error.
I deleted application created new application all steps i did right but stll it showing the old hash key which is not exist over there. The hash key which is showing in the image is not present in app settings in facebook app.
from last two hours i am stucked on this problem.
Wihout facebook application its not detecting my facebook profile when sign in with facebook.
So its not able to recognize the my facebook profile. Thats why i am not able to fetch the facebook user details and not able to enter in to application.
One thing that gave me the same error:
It turned out that I was using the 32bit version of OpenSSL (openssl-0.9.8e_WIN32) instead of the 64 bit one (openssl-0.9.8e_X64) to create my key hash, and it was creating an incorrect key hash from my certificate (the key hash you upload to your Facebook app's dev page). I wouldn't have thought the 32bit one would do it differently on a 64 bit machine, but as soon as I uploaded the new hash, Facebook login worked fine.
I had implemented Facebook Single Sign On in my app. Then I discovered it did not work if the user already had the fb app installed on their phone. I resolved this by generating a key hash for facebook, everything worked again. Since then I upgraded my Corona account from trial to the pro version. Now my facebook is not working again. I am still using the Android Debug key when building the apk file, and I have tried the original Hash Key which I had and made another one, but I can't get it to work. Any solutions?
Hy, we had the same.
Steps : Make a tutorial facebook login example with corona.
Try, thats will work with installed facebook app.
After implement facebook login into your app like in example.
That was the resolution for us.
But i cant say nothing exact, i got that app by another developer for some update/bugfixes.
For some reason the reason unknown to me, my Facebook Hash Key changed. I ran "adb logcat" when using my app on the device. In the logcat Facebook will tell you what Hash Key was expected. Copy/paste this into your Facebook Developer page and it works.
I got this error while adding the hash key to the facebook application, for SSO in my android application
error:
You have enabled a Mobile Web integration for your app, but have not specified Mobile Web URL.
what does this mean ? i never used android-facebook sdk before
while going through link: https://developers.facebook.com/docs/mobile/android/build/#register
i saw a box names Mobile Web Url:[?], what is this and what should be in there???
Check below image , your Application Settings should be like this :
Don't check anything other than this.
After doing this , generate Hash Key and put in respective field.
By mistakely you have checked website with facebook login checkbox.
uncheck it and it will work.
I get this error when i click the login button of facebook in my android application
"Login Failed: invalid_key: Android Key mismatch. Your key "YLYMBqpjl/OenePeQNf4DORUfR8" does not match the allowed keys specified in your application settings, check your app settings at www.facebook.com/developers"
I have gone through link: http://sean.lyn.ch/2011/07/android-the-facebook-sdk-sso-and-you/
and many more, and found out that when using android-facebook sdk on a device (it works fine on emulator) if there is a facebook application already installed on that device it gives this error. to solve this generate a hash key and add it to the facebook application settings, which i did properly, but still i get the same error.
where does this key - "YLYMBqpjl/OenePeQNf4DORUfR8" come from in my error message??
it was working fine on emulator, i could login and post on my wall and get userID, email etc...but on device i get this error
Your key is : "YLYMBqpjl/OenePeQNf4DORUfR8"
paste this key in Native Android App Which Mark as a green Border.
#archie.bpgc it is because you are using the same key which tute uses to authenticate your app with facebook. if you have registered your app on facebook then you will find key for your application on homepage of your registered app.
check this image it shows on top app id
http://i48.tinypic.com/2nas9i0.png