title: An active access token must be used to query information about the current user-Graph api exception
body: <p>I am trying to update Facebook user status using Graph api. My code is</p>
  
  <pre><code>&lt;?php 
      require 'facebook.php'; 
      $facebook = new Facebook(array( 
      'appId' =&gt;'389694921095423',
      'secret' =&gt;'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
      'cookie' =&gt; true
      )); 
      $access_token = $facebook-&gt;getAccessToken();
      echo($access_token);
      $me = null; 
  
      try 
      { 
          $uid = $facebook-&gt;getUser(); 
          $me = $facebook-&gt;api('/me'); 
          echo "Welcome User: " . $me['name'] . "&lt;br /&gt;"; 
          //access permission
          $permissions_needed = array('publish_stream', 'read_stream', 'offline_access', 'manage_pages');
          foreach($permissions_needed as $perm) 
          {  
              if( !isset($permissions_list['data'][0][$perm]) || $permissions_list['data'][0][$perm] != 1 )
              {    
              $login_url_params = array(
                  'scope' =&gt; 'publish_stream,read_stream,offline_access,manage_pages',         
                  'fbconnect' =&gt;  1,         
                  'display'   =&gt;  "page",         
                  'next' =&gt; 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']      
                  );    
              $login_url = $facebook-&gt;getLoginUrl($login_url_params);   
              header("Location: {$login_url}");
              exit(); 
              }
          }
          //Access permission
  
          $post_id = $facebook-&gt;api("/$uid/feed", "post", array("message"=&gt;"Hello World!")); 
          if(isset($post_id)) 
          {
              echo "A new post to your wall has been posted with id: $post_id"; 
          }
      } 
      catch (FacebookApiException $e) 
      { 
          echo($e); 
      } 
  ?&gt;
  </code></pre>
  
  <p>The problem is that it shows a run time error like Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. I have generated the Access Tocken. Where i have to use that to remove this exception
  Thanks in advance</p>