Facebook Android Generate Key Hash

后端 未结 21 2329
误落风尘
误落风尘 2020-11-22 04:11

Trying to create an android app with Facebook integration, I\'ve gotten to the part in the docs where you have to generate a key hash file, it specifies to run the following

21条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 05:04

    SIMPLEST SOLUTION OUT THERE FOR THIS PROBLEM:

    I have had this Problem for two months now. My key hashes have been pyling up to 9. Today i finally found the simple solution:

    STEP 1:

    Install the facebook sdk you downloaded from the facebook developer page on your phone. Don´t install the normal facebook app. Make sure you can log into facebook. Then log out.

    STEP 2:

    Export your app with your final release key as an apk, like you would when uploading it to the playstore.

    STEP 3:

    Put the Apk file on your phone via usb cable or usb stick.

    STEP 4:

    Install your app, using a file manager: Example

    STEP 5:

    Launch your app and try to log in with facebook. A dialog will open and tell you: "the key YOURHASHKEY has not been found in the facebook developer console"

    STEP 6:

    Write down the key.

    STEP 7:

    Put it into your facebook developer console and save. Now you are done. Anyone that downloads your app, published with earlier used keystore can log into facebook.

    Enjoy

提交回复
热议问题