How To Generate Release Key Hash For Facebook Android Studio On Mac

How To Generate Release Key Hash For Facebook Android Studio On Mac Average ratng: 6,5/10 3568 votes

We recommend Osx Uninstaller for its high-efficiency and user-friendly interface. Onyx for mac wiki 2017. Install and uninstall apps on your Mac on a regular basis? Among so many similar products in the market, which one is most suitable for all-level users? In that case you may need a handy, reliable uninstaller designed for your system to keep everything clean. This short video shows how Osx Uninstaller works to quickly uninstall OnyX: • Step 1.

To generate an API key you require, SHA1 fingerprint of your keystore. Keystore is basically a place where the private keys for your app are kept. In simple words its a certificate generated by user or a program, used for signing an Android app. In android there are two types of keystores. A debug keystore, and a release keystore. Generate an android key hash, which will ensure the authenticity of the integration of your App and Facebook. Open your Terminal(CMD) and run the given below command on Mac and any Linux OS to generate an android key hash.

Release

情境:準備將 App 從開發階段改為上架,其中整合 Facebook SDK。 建議一定要先看完 這一段說明,對於如何簽出一個可以上架的 App 會非常有幫助。簡單來說,您本來就必須要用 keystore 簽署一支 app ,只是多了 Facebook App 的話,需要在 Facebook 上多做設定。請特別注意 debug key hash 跟 release key hash 是不能共用的。 0. Avoid Trouble: Start from Scratch 這裡先講述清楚 Facebook 官方的教學文件 - ,以免有人跟我一開始一樣只會傻傻地用 code 卻沒有用心看仔細,到最後才跑出一堆包QQ。裡面有一段話是這麼說的: Put simply, every Android app you'll create will be signed, and you will need to register each app's key hash with Facebook as a security check for authenticity - as we'll see later. But to bypass this check for the SDK samples and to get them up and running quickly, you can add your key hash to your global Facebook Developer profile. 也就是說,一個 Facebook SDK 要能夠跟 Android App 正常的互動,必須依賴這個 key hash 來達成安全性。必須做的事情是 • 用 keytool 指定 debug.keystore 產生一組 keyhash • 將 keyhash 放到 Facebook App Settings • (為了快速開發) 將 keyhash 放到您(開發者)自己的 Facebook Developer Settings 以開發者的角度來說,這樣設定就已經可以開發了,但是如果今天我們要發佈一支 Android App 時,就不能以 debug.keystore 來簽出 keyhash,而是必須使用 release.keystore。 在 中有詳細的說明: • default android debug key.

Keytool -exportcert -alias yourappreleasekeyalias -keystore ~/.your/path/release.keystore openssl sha1 -binary openssl base64 所以,一個要上架/已上架的 App 應該會有 2 個 key hash,請記得都要加入到 Facebook App 設定裡。 By default, the app's package is signed with a machine specific debug key. When publishing the app it is typically signed with a different, release key. Therefore, you want to make sure you have the hashes of all the related keys set on Facebook 另外,針對 Developer settings 中的 Android Key Hash 欄位, tutorial 說 Note that you can add multiple key hashes here if you are developing with multiple machines 這句話表面上是說,「如果你(很有錢)有多個機子,你可以加入多個 key hash 」,但其實同時也代表了「 不同的機子要使用不同的 key hash」。所以如果是多個工程師在共同開發時,記得要各自在自己的電腦上產生 key hash,加到 Facebook App settings 跟自己的 Developer settings。 接著就來講我當初沒有依照上面的方式,結果跑出來的錯誤 1. Trouble-shooting: Trouble ERROR MESSAGES: • com.facebook.FacebookOperationCanceledException: User canceled operation • session state changes to 'CLOSED_LOGIN_FAILED' • key hash doesn't match any stored key hashes 解法1.

Try generating new key hash,請參考 解法2. 有可能有一些符號在 Facebook 會亂掉,請參考 解法3. 確認 package name / class name 沒有打錯。 2. Trouble-shooting: Shooting • 用 Keytool 產生一組 Key Hash,並將這組 Key Hash 放到 Facebook App 跟您的 Facebook Developer Settings,方法如 。如果是 Windows 的話,可以參考 最後,若您無法使用 keytool 正常簽出可用的 key hash,請參照以下的 code (一樣在 裡有提供).

Above command needs the path to your debug keystore. You can find the Keystore path using Eclipse. Goto Window->Preference->Android->Build will open up a window as shown below.

Challenge your friends and family on one computer or play against the witty and personable HOYLE characters! This fun collection features traditional game standards like Chess, Mahjongg and Chinese Checkers plus popular hits like Hangman, Battling Ships and Sudoku. Hoyle board games download for mac.

You can find the Default debug keystore. Copy the path and update in our command, now the command will be like keytool -exportcert -alias androiddebugkey -keystore C: Users sarouje.android debug.keystore openssl sha1 -binary openssl enc -a -e Fire a command prompt and paste the command and run it. Tool will generate a key for you. Edit: I was not successful in generating right Key Hash using command prompt or cygWin. My search leads to explains how to generate right key for the app.

Author also provided the Eclipse project contains the source. Update Hash Key in Facebook Goto to your page and click Edit settings of your app. Click on the Mobile Native section, page will expand and show the section as shown below Update the HashKey in the Android Key Hash Textbox and click save changes. We are done, go ahead and run your app and it will work fine. No more Invalid key exception Edit (Jun-24-2014): notified me about one easy solution he found out in, please check it out as well.