Jump to content

Posting to facebook as a page admin


gerkintrigg

Recommended Posts

Hi all,

 

I've worked out how I can post to a page as a feed update just as me, but I want to post it as the page itself. I guess I need to tell Facebook that I'm not a mere mortal, and that I am an all-powerful admin over-lord, but how do I put such egocentric notions into syntax Facebook will understand?

 

Everything else is working nicely.

 

 

Neil

Link to comment
https://forums.phpfreaks.com/topic/282560-posting-to-facebook-as-a-page-admin/
Share on other sites

I think i've narrowed it down to this part:

#######################################################################
  #get the admin for pages:
  $fb_accounts = $facebook->api('/me/accounts');
  $access_token = $fb_accounts['data'][0]['access_token']; 
  //We can now update a Page as Admin
  $facebook->api('/feed', 'post', array('message'=> 'Hello!', 'access_token' => $access_token, 'cb' => ''));
#######################################################################  

i had thought to change "/feed" to "/pagename" or "/pagename/feed" but neither option work.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.