简体   繁体   English

在React Native中成功登录Facebook一次后无效的哈希键

[英]invalid hash key after one successful login with facebook in react native

I am trying to do login with facebook in my app and want profile data. 我正在尝试用我的应用程序中的facebook登录,并需要个人资料数据。 For that I am generating hash key using command. 为此,我使用命令生成哈希键。 After getting key i am putting it on developers website but it gives me error. 得到密钥后,我将其放在开发人员网站上,但它给了我错误。 I done all other things as given here but all these things are not working for me. 我做了这里给出的所有其他事情,但是所有这些事情都不适合我。

I can do first login successfully (key generated by keytool command) but after that it showing invalid hash key error. 我可以先成功登录(由keytool命令生成的密钥),但是此后显示无效的哈希密钥错误。

please help How can I get out from this. 请帮助我该如何摆脱困境。

This problem is with openssl do not download latest version. 该问题与openssl无关,请不要下载最新版本。 If you have a 64 bit machine you must download openssl-0.9.8e X64 not the latest version. 如果您使用的是64位计算机,则必须download openssl-0.9.8e X64而不是最新版本。

then generate key using command 然后使用命令生成密钥

$ keytool -exportcert -alias androiddebugkey -keystore "C:\\Documents and Settings\\Administrator.android\\debug.keystore" | $ keytool -exportcert -alias androiddebugkey -keystore“ C:\\ Documents and Settings \\ Administrator.android \\ debug.keystore” | "C:\\OpenSSL\\bin\\openssl" sha1 -binary |"C:\\OpenSSL\\bin\\openssl" base64 “ C:\\ OpenSSL \\ bin \\ openssl” sha1 -binary |“ C:\\ OpenSSL \\ bin \\ openssl” base64

It will ask for password put "android" (not other) 它将要求输入密码“ android”(不是其他)

that's all Now it will work. 仅此而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM