Authorizing a Facebook Fan Page for Status Updates

Posted by thechrisvoth on Stack Overflow See other posts from Stack Overflow or by thechrisvoth
Published on 2010-01-19T22:30:15Z Indexed on 2010/03/30 19:53 UTC
Read the original article Hit count: 518

I'm able to update the status on my PROFILE wall using this code:

require_once 'facebook-platform/php/facebook.php';
$facebook = new Facebook('APP API KEY','APP SECRET KEY');
$user_id = 'MY USER ID';
$facebook->api_client->users_setStatus('This is a new status');

...after authorizing using this address: http://facebook.com/authorize.php?api_key=MYAPPAPIKEY&v=1.0&ext_perm=publish_stream

This code, however, does not work to update the status on my Facebook PAGE Wall. Are there additional parameters that I can add to the authorize.php url to specify authorizing the PAGE and not just my profile?

Or, are there better ways to post updates to Fan Page Walls?

Thanks!

© Stack Overflow or respective owner

Related posts about facebook

Related posts about php