Key hash for Android-Facebook app

后端 未结 30 2713
误落风尘
误落风尘 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:53

    I did a small mistake that should be kept in mind. If you are using your keystore then give your alias name, not androiddebugkey...

    I solved my problem. Now if Facebook is there installed in my device, then still my app is getting data on the Facebook login integration. Just only care about your hash key.

    Please see below.

    C:\Program Files\Java\jdk1.6.0_45\bin>keytool -exportcert -alias here your alias name  -keystore "G:\yourkeystorename.keystore" |"G:\ssl\bin\openssl" sha1 -binary | "G:\ssl\bin\openssl" base64
    

    Then press Enter - it will ask you for the password and then enter your keystore password, not Android.

    Cool.

提交回复
热议问题