Search code examples
ruby-on-railsfacebook-graph-apikoalafb-graph

Can we grant access to an app to post something on a page in facebook?


The scenario is I want to post some details on a facebook page created by me from my other app. So want to know how can we give access to app through access token means how can we get the access token for this?

Thank You Regards


Solution

  • You can get the access_token for you page by enabling the manage_pages permission, and then calling the API endpoint: /me/accounts to get the access_token for all the pages you manage.

    You can then use this access token to post to your page using the Graph API call: /{page_id}/feed