title: access token retrieved via javascript SDK seems not valid when passing to php
body: <p>I retrieve an access Token via the javascript SDK and pass this to the server via a windows.location:</p>
  
  <pre><code>&lt;script src='https://connect.facebook.net/en_US/all.js'&gt;&lt;/script&gt;
  &lt;!-- Load javascript facebook connector --&gt;
  &lt;script&gt;
      FB.init({
              appId : '&lt;?=$app_id;?&gt;',
              status : true, // check login status
              cookie : true, // enable cookies to allow the server to access the session
              xfbml : true // parse XFBML
      });
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      function getToken(){
      FB.login(function(response) {
          if (response.authResponse) {
              var access_token = response.authResponse.accessToken;
              window.location="&lt;?=$_SERVER['PHP_SELF'];?&gt;?accessToken="+access_token;
          } else {
              return false;
          }
      }, {scope:'user_likes,friends_likes'});
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>The PHP code:</p>
  
  <pre><code>&lt;?php
    $app_id = 'MY_APP_ID';
    $app_secret = 'MY_APP_SECRET';
    $page_id= 'MY_PAGE_ID';
  
    if(isset($_GET['accessToken'])){
    // Run fql query
    $fql_query_url = 'https://graph.facebook.com/'
  . '/fql?q=SELECT+uid+FROM+page_fan+WHERE+page_id='.$page_id.'+AND+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1=me())&amp;'.$_GET['accessToken'];
    echo $fql_query_url;
    $fql_query_result = file_get_contents($fql_query_url);
    $fql_query_obj = json_decode($fql_query_result, true);
  
    //display results of fql query
    foreach($fql_query_obj as $v1){
      foreach($v1 as $v2){
          $x++;
      }
  }
  echo "You have ".$x." friends who 'like' us";
  </code></pre>
  
  <p>}</p>
  
  <p>When I echo the $fql_query_url and past the url in the browser, facebook graph api answers</p>
  
  <pre><code>{
     "error": {
        "message": "An access token is required to request this resource.",
        "type": "OAuthException",
        "code": 104
     }
  }
  </code></pre>
  
  <p>What am I doing wrong? I DO get an access token but it seems not to be valid?</p>