title: Facebook page status update via fb apps in php
body: <p>I have been trying to post status to my facebook page through a PHP script which runs on my web server. I have succeeded in posting it via app i.e creating an app and using its app id and secret.</p>
  
  <p><strong>Here is the code snippet of it:</strong></p>
  
  <pre><code>$pgid="############";
  $token="###############################";
  $this-&gt;tasks = new Facebookclass(array(
    'appId'  =&gt; '##########',
    'secret' =&gt; '##########',
    'cookie' =&gt; true,
  ));
  $post = array('access_token' =&gt; $token, 'message' =&gt; $message);
  try{
    $res = $this-&gt;tasks-&gt;api('/'.$pgid.'/feed','POST',$post);
  } catch (Exception $e){
    echo $e-&gt;getMessage();
    die();
  }
  </code></pre>
  
  <p>It's working fine and updating the status of my facebook page, but that change/update is only visible only to the admin (ie: me) and not to anyone else who views the page.</p>
  
  <p>If I update status normally by FB logging then it's visible to all, but not the status uploaded via this app.</p>