title: Facebook Android SDK. Error validating access token
body: <p>I am trying to access user information from facebook sdk.But I keep getting this error.</p>
  
  <pre><code>{"error":{"message":"Error validating access token: The session has been invalidated because the user has changed the password.","type":"OAuthException","code":190,"error_subcode":460}}
  </code></pre>
  
  <p>Here is the call which returns me the error in the <code>response</code> parameter of the oncomplete function.</p>
  
  <pre><code>mAsyncRunner.request("me", new RequestListener() {
          @Override
          public void onComplete(String response, Object state) {
              Log.d("Profile", response);
              String json = response;    //&lt;-- error in response
              try {
  
                  JSONObject profile = new JSONObject(json);
                  MainActivity.this.userid   = profile.getString("id");
                  new GetUserProfilePic().execute();
                  runOnUiThread(new Runnable() {
  
                      @Override
                      public void run() {
                          Toast.makeText(getApplicationContext(), "Name: " + MainActivity.this.userid, Toast.LENGTH_LONG).show();
                      }
  
                  });
  
              } catch (JSONException e) {
                  e.printStackTrace();
                  Log.e("jsonexception",e.getMessage());
                  facebook.extendAccessTokenIfNeeded(MainActivity.this, null);
                  GetUserInfo();
              }
          }
          @Override
          public void onIOException(IOException e, Object state) {
          }
  
          @Override
          public void onFileNotFoundException(FileNotFoundException e,
                  Object state) {
          }
  
          @Override
          public void onMalformedURLException(MalformedURLException e,
                  Object state) {
          }
  
          @Override
          public void onFacebookError(FacebookError e, Object state) {
          }
  });
  </code></pre>
  
  <p>Sometimes I get the correct response also.I think this is due to the access token expiration if I am right.
  So can you guys tell me how to extend the access token although I've used this <code>facebook.extendAccessTokenIfNeeded(this, null);</code> in the <code>onResume</code> method of the activity.</p>
  
  <p>How to solve this?</p>