title: Hash key issues on facebook
body: <p>I am trying to integrate facebook to my brand new android application. But I can't make it through the tutorial provided by facebook. <a href="https://developers.facebook.com/docs/android/getting-started" rel="nofollow">https://developers.facebook.com/docs/android/getting-started</a></p>
  
  <p>I tryed to get the haskkey from the provided command : </p>
  
  <pre><code>keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64
  </code></pre>
  
  <p>Here is the result :
  <a href="https://www.dropbox.com/s/s711ldu1y0aa6xo/screen.png" rel="nofollow">https://www.dropbox.com/s/s711ldu1y0aa6xo/screen.png</a></p>
  
  <p>So I added it to my facebook develloper account as asked in the tutorial but, as it didn't work I tryed to get the hashkey from the following code. </p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      // Add code to print out the key hash
      try {
          PackageInfo info = getPackageManager().getPackageInfo(
                  "com.facebook.samples.hellofacebook", 
                  PackageManager.GET_SIGNATURES);
          for (Signature signature : info.signatures) {
              MessageDigest md = MessageDigest.getInstance("SHA");
              md.update(signature.toByteArray());
              Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
              }
      } catch (NameNotFoundException e) {
  
      } catch (NoSuchAlgorithmException e) {
  
      }
  </code></pre>
  
  <p>I get the same result meaning my key is the right one... Do you guys know where could the problem be coming from ?</p>