i integrated facebook sdk to my app and all thing is ok in debug mode i could login and get all data from facebook in debug mode but in signed mode i couldnt find the new hashkey , i followed many tutorials but i didnot find the answer these are metheds i followed:
1-try
{
PackageInfo info = getPackageManager().getPackageInfo("com.Rapp.app", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures)
{
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
}
catch (PackageManager.NameNotFoundException e)
{
}
catch (NoSuchAlgorithmException e)
{
}
2-
keytool -exportcert -alias androiddebugkey -keystore
~/.android/signedkey.keystore > key.out
cat key.out | openssl sha1 -binary > key.bin
cat key.bin | openssl base64