Facebook error: allow key: configure application key hashes on dev.facebook android

When I launch my facebook apps, I get the following error. allow key. Configure application key hashes at http://developers.facebook.com/apps/178779105632639 ...

enter image description here

Any idea?

+4
source share
3 answers

It seems that hashkey, that you have created, is incorrect. You can generate the hash code of the application from the following code. Try

public static void showHashKey(Context context) { try { PackageInfo info = context.getPackageManager().getPackageInfo( "com.example.project", PackageManager.GET_SIGNATURES); //Your package name here for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.v("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch (NameNotFoundException e) { } catch (NoSuchAlgorithmException e) { } } 
+3
source

1.It will help you. good link

2. when creating the application on the developer's site, using some keyhash generated by your cmd prompt, use this copy and the KeyHash insert in the Keyhash column of the developer settings page.

3. change the power button of one character to the -ES button

0
source

You need to create a hash key for your application and register it on FB Developers Console, where you set up the app. I wrote a blog for the same. You can find it: http://www.solutionanalysts.com/blog/android-generate-key-hash-facebook

Hope this helps you.

-one
source

Source: https://habr.com/ru/post/1491773/


All Articles