I'm just beginning learning to use facebook's sdk for making apps and I can't quite understand the purpose of generating a key hash. Can someone explain the purpose of it?
Its Unique key to use for communication between your App and Facebook
App
Facebook uses the key hash to authenticate interactions between your app and the Facebook app. If you run apps that use Facebook Login, you need to add your Android development key hash to your Facebook developer profile.
see this Docs