I'm currently facing a problem with the Facebook API that did not occur in summer 2012. In a facebook app of mine, the user is able to type in some text into a textarea which is then posted to a facebook fanpage, just as he went to the page on facebook himself and posted it there.
Therefore my app requires the publish_stream
extended permissions in order to be able to post onto the pages feed.
To settle the post itself I was doing the following:
try{
$response_object = $fb->api('XXX/feed', 'POST', array(
'message' => $input->post('user_text'),
));
}
catch(Exception $e){
die($e->getMessage());
}
Last year this was working without any problems. On the Page's feed (PageId replaced with XXX in code snippet above) there a post appeared on the page by the user that used the app.
To my surprise the exception in the snippet above was cought when I tried to do the same today. I didn't change anything the way I process data with the fb API.
The message I got was the following:
(#283) Requires extended permission: manage_pages
I don't need to post to the wall as the page administrator but as the user. I retrieved the users access token when authorizing with the publish_stream permissions and I don't want to have the manage_pages
permission since I just don't need to manage the users page.
What I want to do is simply post to a fan page as the user that is using the app.
Did facebook change anything lately on the "post-to-feed procedure" or did I personally miss something?
Thanks in advance Thomas