george
george

Reputation: 1386

Android facebook post works on emulator but not on device - How do I get the right key Hash?

I am working on an android app that among other things also posts a string message in user's wall. The app works fine on the emulator posting the message on my on wall every time. But whenever I try to work it from a device it just doesn't post anything. From debugging so far I see that the authentication fails on the device, while it succeeds on emulator.

From my research I found this -> Android/Facebook - invalid_key on device, but not on emulator

So as far as I understand I need another key for my app to be able to run on a real device. Is there someone who can provide some simple, step by step instructions on how to retrieve this key using the cmd? I tried many things based on that topic's answer and I am currently at a loss..

Thank you in advance!

Upvotes: 0

Views: 633

Answers (1)

Dimitris Makris
Dimitris Makris

Reputation: 5183

In order to have a valid key to have create a valid keystore. This is created when you follow the "export your application process". Then you have to use this 'public' keystore in order to generate the required hash for the Facebook.

Hope this helps!

Upvotes: 1

Related Questions