Search code examples
androidfacebookfacebook-android-sdk

Can't get my android app use facebook although after putting my hash keys


I have changed my eclipse to another version after a sever crash. Now I can't get my apps log to Facebook or post either a text or an image.

I know how to generate the debug.keystore hash key, and my Keystore hash key which I export my apps using it. BTW I deleted my debug.keystore and generate a new one as a try to solve the problem, I failed.

Here is the command used for debug.keystore:

C:\Program Files\Java\jre7\bin\keytool.exe" -exportcert -alias androiddebugkey -keystore C:\Users\Administrator.android\debug.keystore | C:\Windows\SysWOW64\openssl.exe sha1 -binary | C:\Windows\SysWOW64\openssl.exe base64

Also this is my Keystore which I use to export my apps into:

"C:\Program Files\Java\jre7\bin\keytool.exe" -exportcert -alias exportkeystore -keystore "C:\Users\Administrator\APKs\exportkeystore" | C:\Windows\SysWOW64\openssl.exe sha1 -binary | C:\Windows\SysWOW64\openssl.exe base64

I put the resulted two hash keys, into my Facebook android native app. Also I have noticed that my eclipse SHA has changed to another one, my previous eclipse was Juno and the present is Kepler.

Now, what is the solution? How to solve my Facebook login problem? and Can I still publish my apps after the eclipse fingerprint certificate changed (i.e. new SHA) ?


Solution

  • I solved my question, referred to the official Facebook API documentation: Setting a Release Key Hash