Facebook API login fails with FB app installed on phone

前端 未结 5 2501
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 16:10

I am building an app, which is going to have support for facebook. I have downloaded facebook API and their sample called \"Hackbook\" from original Git repos. The problem i

5条回答
  •  情深已故
    2020-12-02 17:00

    I have toiled for two days & got the solution at last, this is the WRONG way to get the hash key -

    keytool -exportcert -alias ** -keystore ** | [openssl_bin_directory]\openssl sha1 -binary | [openssl_bin_directory]\openssl base64
    

    The right way is type these 3 lines, one at a time in cmd. After the first line, you'll be asked to insert the keystore password.

    keytool -exportcert -alias ** -keystore ** > [openssl_bin_directory]\debug.txt
    [openssl_bin_directory]\openssl sha1 -binary [openssl_bin_directory]\debug.txt > [openssl_bin_directory]\debug_sha.txt
    [openssl_bin_directory]\openssl base64 -in [openssl_bin_directory]\debug_sha.txt > [openssl_bin_directory]\debug_base64.txt
    

    If you want to know details, the RIGHT way is described here -

    http://facebook.stackoverflow.com/questions/13281913/app-is-misconfigured-for-facebook-login-with-release-key-hash

    or here

    Facebook Android Generate Key Hash

提交回复
热议问题