title: Error validating access token: Session has expired
body: <pre><code>&lt;?php
      require_once("facebook.php"); // set the right path
  
      $config = array();
      $config['appId'] = '';
      $config['secret'] = '';
      $config['fileUpload'] = false; // optional
      $fb = new Facebook($config);
  
      $params = array(
        // this is the main access token (facebook profile)
        "access_token" =&gt; "EAAHHbZBnyVlsBAFx1X4LVrxouuTYZB5IDsd7PI2FQica9tqNNvzInPKP9KHPQKJPfxITGy6ZCuSjOFPChrD4f5damVXSeC2O6w7BZATUNp7s8nTZBVn8ZBdyKuVpbQeTU4mZBVrUJ92IUwP7Ubli9JJuUrtqZAwOe1ZCv751ZBNOoO80fXyATn0ztaU8OQZD",
        "message" =&gt; "",
         "name" =&gt; "",
        "caption" =&gt; "",
        "description" =&gt; ""
      );
  
      try {
        $ret = $fb-&gt;api('/me/feed', 'POST', $params);
        echo 'Successfully posted to Facebook Personal Profile';
      } catch(Exception $e) {
        echo $e-&gt;getMessage();
      }
      ?&gt;
  </code></pre>
  
  <p>I have created a server-side PHP app that posts status automatically on my FB page but When I run the app, it shows an error message:</p>
  
  <pre><code>Error validating access token: Session has expired
  </code></pre>