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.
Here is the code snippet of it:
$pgid="############";
$token="###############################";
$this->tasks = new Facebookclass(array(
'appId' => '##########',
'secret' => '##########',
'cookie' => true,
));
$post = array('access_token' => $token, 'message' => $message);
try{
$res = $this->tasks->api('/'.$pgid.'/feed','POST',$post);
} catch (Exception $e){
echo $e->getMessage();
die();
}
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.
If I update status normally by FB logging then it's visible to all, but not the status uploaded via this app.