facebook - Multiple posters on page -
facebook - Multiple posters on page -
i have question, might found somewhere couldnt find thread if there one, please post link.
i admin page grouping of several other business areas. want post on 1 page different icons , names, can done? different admins administered 1 person/account?
possible?
what going want utilize "page access_token
". have create application , grant manage_pages
permission.
you should see in authentication documentation section called "page login". can grant application manage_pages
permission going url:
https://www.facebook.com/dialog/oauth?client_id=your_app_id&redirect_uri=your_url&scope=manage_pages&response_type=token
don't forget substitute your_app_id
, your_url
right values application , url. (the url can url - facebook send after close dialog). see dialog looks :
once have right permission, you'll want create phone call url :
https://graph.facebook.com/me/accounts?access_token=token_from_above
you response similar :
as can see image, receive list of pages user administers along access_token
each page. utilize access_token
create posts on behalf of page. since have not stated programming language using give illustration in php. in php, posting page :
$facebook->setaccesstoken(access_token_you_retrieved_earlier); $attachment = array('message' => 'this message', 'name' => 'this demo facebook application!', 'caption' => "caption of post", 'link' => 'http://mylink.com', 'description' => 'this description', 'picture' => 'http://mysite.com/pic.gif', 'actions' => array(array('name' => 'get search', 'link' => 'http://www.google.com')) ); $result = $facebook->api('/page_id/','post',$attachment);
hope helps! happy coding!
facebook accounts
Comments
Post a Comment