Phonegap Build facebook Connect Plugin (android)

百般思念 提交于 2019-12-05 23:21:46

The problem you are facing because of you are not using right keystore file, Signed key, and key algorithm. You will need to generate a hash of your Android key(s) and submit those to the Developers page on Facebook.

If you are generating this hash on Windows (specifically 64 bit versions), please use version 0.9.8e or 0.9.8d of OpenSSL for Windows and not 0.9.8k.

Once you download openssl, open the command prompt (cmd.exe) as an Administrator, then run the following command:

keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000

Please note the alias_name, and keep all passwords andriod

Now, go to your phonegap account >> edit account >> Click on signing keys tab >> Click 'add a key...' and supply the following info:

Title - anything

Alias - alias_name that you have given while generating the keystore file.

Then, create a new hash key using the keystore file that you generated and then update that hash key in your facebook app.

Use below command to generate hash key.

keytool -exportcert -alias [alias_name] -keystore [keystore_filename.keystore] | openssl sha1 -binary | openssl base64

That should be it!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!