I am writing an application that has to publish a message on the wall on behalf of my FB fanpage.
$facebook = new Facebook(array(
'appId' => 'xxx',
'secret' => 'xxx',
));
$facebook->api("/100002240625255/feed", 'POST', array(
'message' => 'tu wiadomosc'
));
works, but the author is the owner of the table entries and not fanpage. Does anyone else have a solution.
You could use Piotr Zawadzki answer but I would recommend you to, before generating the page access token with your user access token, please, first be sure to use your Extended Access Token, for example with the following code in PHP:
This would allow you to create a non-expiry token for pages.