Android Facebook SDK: generate release key hash

后端 未结 11 1956
执念已碎
执念已碎 2020-12-04 14:49

I\'m building an app in which users can log in with Facebook.

I\'ve created the hash keys like following:

try {
         PackageInfo info = getPackag         


        
11条回答
  •  萌比男神i
    2020-12-04 15:04

    The simplest solution.

    1) Sign your Apk.

    2) Connect your device to machine and Install signed apk on real device.

    3) When facebook login is pressed, you will get an error saying "Invalid key hash. The key hash "xxx" does not match any stored key. ..." on your logcat.

    4)Copy the logcat Hash Key and put this key to developers.facebook.com/apps/104...../settings/

提交回复
热议问题