I got KeyHash using this. Of course, I copied this (KeyHash, package name and main activity class) to facebook settings according this.
And when I debug my app it looks fine (I can login and logout how many times I want), but when I create APK and run the app I received common error "invalid key hash the key hash does not match any stored key hash..."
What do I need to except getting right KeyHash and adding it into your Facebook App ID's Android settings?