I'm developing an application in php using graph api. So, I have to post messages to a Facebook page as admin. I followed this: How to post to Facebookpage as admin via API (Php SDK)? . It worked well a couple of time, but now it returns this error: PHP Fatal error: Uncaught GraphMethodException: Unsupported post request.\n thrown in /home/redmarv/public_html/owl-test/facebook.php on line 453
But can't find where the problem is. Even with google or search other posts right there. But I can't understand why it works a couple of time and then no. Without changing anything.
Actually I use this code:
include_once "fbmain.php";
echo 'Hi ' . $uid . '<br />';
$fb_accounts = $facebook->api('/me/accounts');
$access_token = $fb_accounts['data'][1]['access_token'];
echo 'Access Token= ' . $access_token;
$facebook->api('/page_id/feed', 'post', array('message'=>'OWL F TOOLS N TEST by: '.$uid, 'access_token'=>$access_token, 'cb'=>''));
The included fbmain.php does the session contro and create the $facebook object. Sorry for my bad English and thanks.