問題描述
我只是想要一些確認.
我在 windows 上開發
I'm developing on windows
我正在嘗試將 facebook 集成到應用程序中,但 SDK 文檔說我需要導出簽名"
I'm attempting to integrate facebook into an app and the SDK documentation says I need to 'export a signature'
從這里:http://developers.facebook.com/docs/guides/手機/#android
所以它說運行這個命令:
So it says run this command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
首先我必須下載 openssl:OpenSSL
First I had to download openssl: OpenSSL
現在上面的命令,我假設應該轉換為:
Now the command above, I assume should be converted to:
"C:path ojavakeytool" -exportcert -alias your_alias -keystore "C:path oyourkeystorekeystore.name" | "C:path oopenssl_installinopenssl" sha1 -binary |"C:path oopenssl_installinopenssl" base64
- 所以您想要安裝在最新 Java 安裝文件夾中的 keytool?
- 您希望別名是您用于在 eclipse 中正常創建 apk 的別名的名稱嗎?
- 您希望密鑰庫成為您在導出 Android 應用程序時使用的那個?
- 您希望 openssl 成為您剛剛安裝的那個
因此,一旦我完成此操作,它就會要求輸入密碼:(它會在我輸入密碼時顯示密碼)
So once I've done this it asks for a password: (it shows the password as I'm typing it)
如果我輸入正確的密碼,我會得到
If I enter a correct password I get
'zR2tey1h9kqPRSW/yEYEr0ruswyD='(改為公開)
'zR2tey1h9kqPRSW/yEYEr0ruswyD=' (changed for public)
但是如果我輸入了錯誤的密碼,它仍然會以
but if I enter an incorrect password it still returns me a code in the form of
'ga0RGNYHvTR5d3SVDEfpQQAPGJ1='?
'ga0RGNYHvTR5d3SVDEfpQQAPGJ1='?
所以是的,我只是在尋找我做正確事情的確認,這是預期的輸出
So yeah, was just looking for a confirmation that I'm doing the right thing, and this is the output expected
推薦答案
是的,我認為你的做法是正確的.我也執行此命令并將此哈希放入我的 fb 應用程序中,并且它可以正常工作.
yes you are doing it in a right way i think.i also execute this command and put this hash in my fb app and its works properly.
這篇關于帶有 Android Facebook SDK 的 keytool的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!