Invalid Key could be for a number of reasons -
- Make sure you have Keytool and OpenSSL installed.
- Make sure you are giving the correct Keystore file in the command.
- Make sure you are giving the correct Alias.
- Make sure you copied the generated Hash Key correctly to the Facebook application correctly.
When I got Invalid Key initially, it was because I was giving the wrong Alias. The strange thing is, that Keytool and OpenSSl won't mention that the alias is wrong. If you give the command to generate the Hash Key, and it doen't ask you for your password, you're probably doing it wrong.