安装Facebook应用程序时无法实现Facebook登录

时间:2022-03-02 18:39:56

We are using Facebook login in our app. when we logged in to the app locally it logged in correctly and created the release key and updated it in the Facebook developers page and uploaded in the google play. When downloading it from the google play we logged in using the offical Facebook app. It says that

我们在我们的应用程序中使用Facebook登录。当我们在本地登录应用程序时,它正确登录并创建了发布密钥,并在Facebook开发人员页面中更新并在谷歌播放中上传。从Google Play下载时,我们使用官方Facebook应用登录。它说

No android Keyhash for the app configured. Please configure the keyhash in the developers page.

没有配置应用程序的Android Keyhash。请在开发人员页面中配置keyhash。

But when we uninstalled the official Facebook app and repeated for the login it works fine.

但是,当我们卸载官方Facebook应用程序并重复登录时,它工作正常。

Thanks in Advance for the help

在此先感谢您的帮助

1 个解决方案

#1


Please add hash key of both release & debug key into facebook app and make sure your facebook app is published.

请将发布和调试密钥的哈希密钥添加到Facebook应用程序中,并确保您的Facebook应用程序已发布。

You can use following command on bash to generate key hash

您可以在bash上使用以下命令来生成密钥哈希

keytool -exportcert -alias -keystore | openssl sha1 -binary | openssl base64

keytool -exportcert -alias -keystore | openssl sha1 -binary | openssl base64

for more visit https://developers.facebook.com/docs/android/getting-started#release-key-hash

更多访问https://developers.facebook.com/docs/android/getting-started#release-key-hash

#1


Please add hash key of both release & debug key into facebook app and make sure your facebook app is published.

请将发布和调试密钥的哈希密钥添加到Facebook应用程序中,并确保您的Facebook应用程序已发布。

You can use following command on bash to generate key hash

您可以在bash上使用以下命令来生成密钥哈希

keytool -exportcert -alias -keystore | openssl sha1 -binary | openssl base64

keytool -exportcert -alias -keystore | openssl sha1 -binary | openssl base64

for more visit https://developers.facebook.com/docs/android/getting-started#release-key-hash

更多访问https://developers.facebook.com/docs/android/getting-started#release-key-hash