0

I created a Facebook application and added API key into key hash but still Facebook login shows failed due to Invalid key.

My application is ready but this is the problem causing in delay of publishing my application.

aNi
  • 1,359
  • 11
  • 17
  • 1
    pls explain how did you generate your key? – Sunny Nov 23 '11 at 12:34
  • i followed all steps given on facbook developer site. – Prathamesh Talathi Nov 23 '11 at 13:37
  • Check http://stackoverflow.com/questions/4489791/facebook-android-sdk-invalid-key/4496457#4496457 - your key hash may be incorrect in your app settings – Igy Nov 23 '11 at 15:22
  • the steps that i followed to get key hash are 1.copied all file from OpenSSl into jdk 2.set path to C:/programfiles/java/jdk/bin in command prompt 3.then run= keytool -export -alias androiddebugkey -keystore "[PATH]\debug.keystore" -storepass android -keypass android | openssl sha1 -binary | openssl enc -a -e 4.got hash key +ZRWQIs5LsdDsBNdoJ8wT2RyYrE= 5.copied into native android app in hash key but still error occurred plz help me – Prathamesh Talathi Nov 23 '11 at 18:06

2 Answers2

0

After creating your Facebook application, it'll generate an API-key to use. This is the key you'll need.

If I'm correct you can still find it somewhere on your Application page on Facebook.

Not sure if the api-key is equal too the application ID.

0

I tried this one

Facebook.FORCE_DIALOG_AUTH

and it worked.

Kris
  • 14,426
  • 7
  • 55
  • 65