Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.