title: Different Facebook access token JavaScript SDK
body: <p>I'm quite confused with the access token from facebook..here is how I obtain the user's access token and use it to get data from graph API</p>
  
  <pre><code>window.fbAsyncInit = function() {
      FB.init({
          appId       : 'app ID',
          status      : true, 
          cookie      : true,
          xfbml       : true,
          oauth       : true,     
      });     
      FB.getLoginStatus(getStatus);    
      FB.Event.subscribe('auth.authResponseChange', getStatus);
  
      function getStatus(response) {
          if ( response.status === 'connected' ) {
              var accessToken = response.authResponse.accessToken;
              console.log("accessToken = " + accessToken);
  
              $.ajax({
                  dataType    : "jsonp",
                  type        : "GET",
                  url     :   "https://graph.facebook.com/me/albums?access_token=" + accessToken,
                  success : function(data) {
                      $.each(data, function(index, value) {
                          console.log(index + ": " + value);  
                      })
                  }
              });                     
          }   
      }   
  };
  </code></pre>
  
  <p>However, I always get an empty data. After I visit the graph API documentation here: <a href="https://developers.facebook.com/docs/reference/api/" rel="nofollow">https://developers.facebook.com/docs/reference/api/</a> and click on one of the graph links, I notice that the access token generated there is always different from what I retrieve from my code. For example, the current access token in the graph api documentation is </p>
  
  <p>"AAAAAAITEghMBAMwuyHZCO3VOAvCm9hHpaZC9PGV9238ixsZB7zSfuplZBTZCLRj6cEViZADJlVcjOfInwvcbhqu3XBF1w4ZAxvPbexcGQZAYzb4bHAKsMbLF" </p>
  
  <p>and the one in console log is </p>
  
  <p>"AAAG0ZCFantJ8BAAFcMdDOyDyT4OBtjrvULEaS2o94gZAU7U1xITaogFXCZBghQP8G9bjEh3XSCATQOZCUSZCuNWFvEfypIAmcz9bkbk5qRBlHUZAOE4guW"</p>
  
  <p>I think that I may have done this the wrong way. Can anyone help explain to me how to retrieve data from graph API in a correct way?</p>
  
  <p>Any kinds of help will be appreciated. Thanks in advance :)</p>