如何正确地生成FB keyhash使上的.apk文件登录作品 [英] How properly generate fb keyhash to make login works on .apk file

查看:316
本文介绍了如何正确地生成FB keyhash使上的.apk文件登录作品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是,当我的应用程序是由debbuging在eclipse.When安装在我的手机,我尝试出口的.apk文件进行安装FB登录正常工作,我得到的消息:应用程序想获得您的公众形象和朋友:如果我点击确定没有列表发生。

my problem is that fb login works properly when my app is installed on my phone by debbuging in eclipse.When I try to install it by exported .apk file, I get the message: "app would like to get access to your public profile and list of friends" if i click ok nothing happens.

创建<一个href="http://stackoverflow.com/questions/22544573/fb-login-crashes-when-i-install-app-by-exported-apk">here问题和意见我读,我应该生成另一个哈希键为我的.apk文件的建议。

I create here the question and in comment I read the suggestion that I should generate another hash key for my .apk file.

首先,我去Eclipse的>右键点击我的项目 - > Android的工具 - >导出签名的应用程序包

Firstly I go to eclipse-> right click on my project -> android tools -> Export signed application package

其次我找到了答案<一href="http://stackoverflow.com/questions/11864700/signed-apk-has-different-key-hash-for-facebook">here,如何获得哈希键签署Facebook的APK。

Secondly I found the answer here, how to get the hash key for signed facebook apk.

我的密钥库,我的出口项目到文件中创建有: C:\ Users \用户组\桌面\阿尔伯特\并命名为密钥库,所以我写这行的命令提示符

My keystore which I create during the exporting project to file is there: C:\Users\Group\Desktop\albert\ and is named by keystore, so I write this lines in command prompt

C:\Program Files (x86)\Java\jdk1.7.0_51\bin>keytool -exportcert -alias keystore
-keystore "C:\Users\Group\Desktop\albert\keystore" | "C:\OpenSSL\bin\openssl"
sha1 -binary | "C:\OpenSSL\bin\openssl" base64

有人问我的密码,输入这个我用于创建密钥存储。然后,我得到的哈希值code,但把它变成Facebook开发板后,登录仍然无法正常工作。

I was asked for password and typed this one which I used for creating keystore. Then I get the hashcode, but after putting it into facebook developer panel, the login still doesn't work.

如何解决这个登录问题?这个问题让我恶心:/

How to solve this login problem? This issue make me sick :/

推荐答案

错是别名,当你导出你的应用程序中创建新的密钥存储文件,你需要给一个别名,这里面我庆祝。这同一个名字,你需要把你的命令提示符窗口。

Mistake was in alias, when you create new keystore file during exporting your app, you need to give a alias this which I mark. This same name you need to put to your command prompt.

所以不是我做的,因为我把我的文件名密钥库,但放在那里,你的别名,一切都会好起来的。

so not as I done, cause I put my file name "keystore" but put there your alias name and everything will be alright

这篇关于如何正确地生成FB keyhash使上的.apk文件登录作品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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