释放与生成的apk相同的Facebook哈希密钥 [英] Release apk Facebook hash key not same with generated one

查看:256
本文介绍了释放与生成的apk相同的Facebook哈希密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Android应用程序.在我的应用程序中,我正在集成Facebook登录.我的Facebook登录正常.但是当我制作发行版apk并运行该应用程序并尝试使用Facebook登录时却无法正常工作.请在下面查看我的情况.

I am developing an Android app. In my app, I am integrating Facebook Login. My facebook login working fine. But not working when I produce release apk and run that app and try to log in with Facebook. Please see my scenario below.

  1. 我生成如下所示的发布apk

  1. 然后,我使用该jks文件路径生成密钥哈希.

  1. Then I generate keyhash using that jks file path.

我得到了一个哈希键,然后将其添加到开发人员配置文件设置中.

I got a hash key and then add it to the developer profile settings.

当我在设备上安装并运行该apk并使用Facebook登录时,它始终显示如下错误.

When I install and run that apk on my device and login using Facebook, it always shows error like below.

Facebook哈希密钥配置错误.实际上,我所做的所有步骤都是正确的.因此,我尝试的是,我尝试将该哈希键复制到开发人员设置中并且无法正常工作.我尝试了另一种方式.我用新密钥(不同的jks文件)生成了新的发行版apk.然后,我为此生成了哈希键,并将其添加到开发人员设置中.然后,我在手机上运行应用程序并登录.它给了我同样的错误.此外,即使我使用不同的密钥生成了另一个发行版apk,它也使用相同的哈希密钥显示了相同的错误.怎么了?

Facebook hash key misconfiguration. Actually all the steps I did was right. So what I tried is, I tried copy that hash key to developer settings and not working. I tried another way. I generated new release apk with new key(Different jks file). Then I generated hash key for it and add it to developer settings. Then I run app on my phone and log in. It gives me same error. Besides, it shows the same error with same hash key even if I generated another release apk with different key. What is wrong?

这是附加的

所有版本的APK都可以在第一时间登录Facebook.然后再次登录.上面的错误显示.卸载应用并重新安装,无法正常工作.但是,如果我生成具有不同密钥库的发行版apk,则它第一次起作用,然后就不起作用了.卸载并重新安装无法正常工作.可能是什么错误?

All the release apk can login to Facebook at first time. Then log in again. Above error shows. Unstall the app and install again not working. But if I generate a release apk with different keystore, it works for the first time, then not working. Unstall and reinstall not working as well. What is the possible error?

推荐答案

我也遇到了这个问题...生成哈希键时,添加了计算机密码,但是必须写android 您将获得Facebook向您显示的密钥哈希值.

I had this problem too... When you generate the hash key, you add your computer password, but you have to write android You will get the key hash that facebook is showing you.

因此,将其添加到您的应用程序上 developers.facebook.com

So, add it on your app on developers.facebook.com

在此处查看操作方法: android facebook集成无效密钥哈希

See it here how to do it: android facebook integration invalid key hash

这篇关于释放与生成的apk相同的Facebook哈希密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆