When you are creating application for Facebook on Android platform, Developer Website requires the Key Hash for every development device.
This secret stroke is automatically generated by Eclipse or other dev studio in "debug.keystore" storage.
You can obtain Key Hash via command line:
or sample code:
You have to add all you developer and release key hashes into Web panel of your Facebook Application. Everything looks simply enough.
But, if your hash key contains / (slash) or + (plus) symbol Facebook integration will not work! You'll get error message, something like that: "Key hash Fj2DQ/kUxqHuaTq1jy9iTejN2Uk= does not match any stored key hashes".
I've spent few hours to understand the problem and find a workaround :( Here is an easiest way:
- Delete "debug.keystore" file in your "[%USERNAME%]/.android" folder.
- Rebuild project to get new "debug.keystore" file with new key hash.
- If new hash contains any symbol (= at the end is OK :)) repeat again
Hope this tip helps other developers! Sometimes, development for Android and Facebook is a pain...