Key hash for Android-Facebook app

后端 未结 30 2690
误落风尘
误落风尘 2020-11-22 01:17

I\'m working on an Android app, in which I want to integrate a Facebook posting feature. I downloaded the Facebook-Android SDK, and I got the readme.md (text file) in there,

30条回答
  •  迷失自我
    2020-11-22 01:49

    I have done by this way for Linux OS & Windows OS:

    Linux:

    • Download Openssl
    • Open terminal
    • keytool -exportcert -alias **myaliasname** -keystore **/home/comp-1/Desktop/mykeystore.jks** | openssl sha1 -binary | openssl base64

    Kindly change Alias Name and Keystore with it's path as your requirement.

    Terminal would ask for Password of Keystore. You have to provide password for the same Keystore.

    So finally you would get the Release Hashkey.

    Windows:

    Steps for Release Hashkey:

    • Download Openssl (Download from here), I have downloaded for 64 bit OS, you can find more here
    • Extract downloaded zip file to C:\ drive only
    • Open command prompt
    • keytool -exportcert -alias **myaliasname** -keystore **"C:\Users\hiren.patel\Desktop\mykeystore.jks"** | "C:\openssl-0.9.8e_X64\bin\openssl.exe" sha1 -binary | "C:\openssl-0.9.8e_X64\bin\openssl.exe" base64

    Kindly change Alias Name and Keystore with it's path as your requirement.

    Note:

    Please put your details where I have marked between ** **.

    Terminal would ask for Password of Keystore. You have to provide password for the same Keystore.

    So finally you would get the Release Hashkey.

    Done

提交回复
热议问题