0

Let's say I've create a facebook page named MyPage.

When I am using a web interface of FB, I can either post on that wall as the user I am logged in as (personal user) or as a page instance, MyPage user.

Is it possible, via any of the available API's, to post on a facebook page as that page's user programmtically from my desktop application code?

Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174

1 Answers1

0

To post on facebook page as that page, you need an page access token of that page.

To get the page access token, you need-

  • permission: manage_pages.
  • API call: /{page-id}?fields=access token

(If you are not aware, you can test the graph api calls from: Graph API Explorer)

In the posting code, just add a parameter: access_token and give it the page access token. That's it.


PS if you wish to extend this token, that'll never expire, you can get the login from here: What are the Steps to getting a Long Lasting Token For Posting To a Facebook Fan Page from a Server

Community
  • 1
  • 1
Sahil Mittal
  • 20,697
  • 12
  • 65
  • 90