0

Hello i am a newbie on Facebook app development. As following the instructions mentioned at the facebook development "getting started", (https://developers.facebook.com/docs/android/getting-started/)

I successfully run the sample app "hellofacebook" on my PC's emulator,and also posted my status with it with no errors. When i exported the apk and installed to my phone,i can successfully log in with my account. However,when use it to post my status,it echoed an error as below:

(#404) Key hash __________ does not match any stored key hashes.

The echoed key hash does not match with my pc's key,which is containing slides(/)and equal marks.(=)

Here comes my question:Why does it works on the emulator but not my phone?

Thanks and sorry for my poor english expression:(

  • when you export the app, you generate a new keyHash, so you have to add this keyhash to the dev console on facebook – A.S. May 07 '14 at 09:55
  • thanks for answering,after i did that, it still failed. – Tony Leung May 07 '14 at 10:03
  • you can use my tools for mac and windows to generate key hash here: http://stackoverflow.com/a/17732453/2226605 – Shahar May 08 '14 at 13:57
  • Thanks Shahar,after using your tools,i found that the code was almost the same but "_" is replaced by "/"..... – Tony Leung May 09 '14 at 02:52

0 Answers0