Facebook Graph-API: Publish on behalf of a page

Read about extended permissions on facebook.

In order to publish an object to facebook on behalf of a page, you must have page permissions (manage_page).

You can than query

https://graph.facebook.com/me/accounts

to retrieve a feed of all pages the user manages with corresponding access tokens. Use these access tokens to publish an object to facebook on behalf of a page instead of a user. You should get something like

[{
"name"=> "Example Page", 
"category"=>"Websites", 
"id" => "123456789", 
"access_token" => "to publish on behalf of a page use this access token"
}]

Leave a Reply