title: Invalid key hash while integrating Facebook login
body: <p>I am using Facebook <code>LoginManager</code> class to integrate Facebook login in my app. So when I install my app first time and try to login everything works fine and I can easily get the access token using <code>loginResult.getAccessToken().getToken()</code>.</p>
  
  <p>But once I uninstall &amp; re-install my app and try to login again, it throws me an <code>Facebook Exception</code> <strong>"Invalid key hash. The key hash NDMi5aisFkTeU6BlER3L8JZ+wHw= does not match any stored key hashes. Configure your app key hashes at <a href="http://developers.facebook.com/apps/1646433015643090" rel="nofollow">http://developers.facebook.com/apps/1646433015643090</a>"</strong></p>
  
  <p>So why this, Is anything to do while uninstalling the app.</p>
  
  <p><strong>Code I used</strong></p>
  
  <pre><code>FacebookSdk.sdkInitialize(getApplicationContext());
  mCallbackManager = CallbackManager.Factory.create();
  
          LoginManager.getInstance().logInWithReadPermissions((Activity)mContext, Arrays.asList("email", "user_photos", "public_profile"));
  
          LoginManager.getInstance().registerCallback(mCallbackManager, new FacebookCallback&lt;LoginResult&gt;() {
              @Override
              public void onSuccess(LoginResult loginResult)
              {
                  new FacebookLoginLoaderTask(mContext, loginResult.getAccessToken().getToken()).executeOnExecutor(AsyncTask.SERIAL_EXECUTOR);
  
              }
  
              @Override
              public void onCancel()
              {
                  System.out.print("Login Cancel");
              }
  
              @Override
              public void onError(FacebookException exception)
              {
  
              }
          });
  </code></pre>