title: Facebook access tokens, permissions and offline publish_actions
body: <p>I am working on an app where one of the things that I want to do is publish a status on behalf of a user, offline. That is when the user is not using the app. The facebook's documentation is not clear about validity of access tokens, type of access token required for particular call(like publish stream), how to renew it, etc. I am using PHP Facebook SDK. It has a function <code>setExtendedAccessToken()</code>. But it is for extending the short-lived access token obtained by the client side for 60days(with some exception cases ofcourse). What if I have a long-lived access token that I obtained via server-to-server call. More specifically, by calling the <code>$facebook-&gt;getAccessToken()</code> method. I am using the following code to post in offline mode.</p>
  
  <pre><code>$req =  array(
  'access_token' =&gt; $access_token, //stored in db, obtained thru getAccessToken()
  'name' =&gt; "Awesome Status!",
  'link' =&gt; "apps.facebook.com/myapp",
  'description' =&gt; "Some Description",
  'picture'=&gt;"xxx.jpg",
  'caption' =&gt; "Caption this"
  );
  $res = $facebook-&gt;api("/$userid/feed", 'POST', $req);
  </code></pre>
  
  <p>Thanks!</p>
  
  <p><strong>Addition:</strong></p>
  
  <p>Tried using <code>setExtendedAccessToken</code> function, but it doesn't change anything. I even checked the access tokens information <a href="https://developers.facebook.com/tools/debug/" rel="nofollow">here</a>. I think it works for with the short-lived, client side generated token.</p>