gerkintrigg Posted September 30, 2013 Share Posted September 30, 2013 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 More sharing options...
gerkintrigg Posted September 30, 2013 Author Share Posted September 30, 2013 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. Link to comment https://forums.phpfreaks.com/topic/282560-posting-to-facebook-as-a-page-admin/#findComment-1451858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.