使用Facebook SDK生成哈希键,应用程序 [英] Generating hash key for app using facebook sdk

查看:154
本文介绍了使用Facebook SDK生成哈希键,应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Facebook的SDK进行登录到我的应用程序。 该应用程序运行正常的HTC设备。 该applicatioin也工作正常,在三星的设备,如果没有安装Facebook应用程序pre 但如果有已经在手机的Facebook应用程序,然后在用户安装我的应用程序的用户从来没有登录。 据我所知,我认为这可能是单点登录的一个问题,我觉得这是产生应用程序的正确哈希键,并使用Facebook应用程序的哈希键,我用于登录到移动应用程序有点关系。

I am using facebook sdk for login into my application. The application runs fine on htc devices. The applicatioin also works fine on samsung devices if there is no facebook app pre installed but if there is already facebook app on mobile and then the user installs my app the user is never logged in. From what I know I think this might be a problem of single sign on and I think this is somewhat related with generating proper hash key of the application and using the hash key in facebook application which I used to log into the mobile app.

请指导我如何创建哈希键。我运行Ubuntu 10.4。

Please guide me how to create the hash key. I am running ubuntu 10.4.

当我在终端中运行以下命令: -

When i run this command in terminal :-

keytool -exportcert -alias <your keystore alias name>.keystore -keystore ~/.android/<your keystore name>.keystore | openssl sha1 -binary | openssl base64

我从来没有提示输入密码,虽然我给出的哈希键。

I am never prompted for password though i am given the hash key.

在此先感谢

推荐答案

试试这个:


keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 

我希望你能得到它。我只是检查它,我得到提示输入密码。

I hope you will get it. I just checked it and I got the prompt for password.

这篇关于使用Facebook SDK生成哈希键,应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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