In my application i want to integrate the facebook. I wrote all the code for this.But whenever i click the facebook login button it showing one popup like "Invalid key hash and the key hash XXX does not match with any stored key hash" If my mobile not having facebook application, then it is working. If my mobile is having facebook app the facebook integration is not possible to me.
for hash key: (oncreate)
try {
Log.v("TAG_PACKNAME",""+"UUUU");
PackageInfo info = getPackageManager().getPackageInfo(
"Your package name",
PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.v("TAG_PACKNAME",""+ Base64.encodeToString(md.digest(), Base64.DEFAULT)); // not printing
}
} catch (PackageManager.NameNotFoundException e) {
} catch (NoSuchAlgorithmException e) {
}
i got hash key and release key too. i added both developement key and release key in facebook console. But whenever i click the facebook login button it pop ups like "invalid hash key. the hash key not matched with already stored hashkey" please any one help me out.