facebook-graph-apifacebook-appsfacebook-timeline

Best option to POST on facebook timeline


I need to make POSTs to facebook page timeline (not auto posts, but when a user on an enterprise application submits a form). Note that a user should bot be logged in on facebook!

I've searched a lot and seems i should use graph api to do this... but, it's possible to achieve this without creating a facebook app?

I don't wish any user have this app... i just need to make POSTs to a facebook page that i own. So, it's not a public app.

I've made some tests with graph api explorer, after creating an app, and i'm trying to POST and always get error "An active access token must be used to query information about the current user.".

So, i'm using the correct access token (app access token in this case)... how can i test this? I should have my app submitted to be reviewed already? I just want to make some tests, to see if this actually works as i need to... don't wish to publish app now.

Could someone point me to the right direction?

Thanks!


Solution

  • An App Token is the wrong Token to post to a Page. You would need to use a Page Token for that. At least if you want to post "as Page". If you want to post "as User", you have to use a User Token. Everything you need to know is in the docs: https://developers.facebook.com/docs/graph-api/reference/v2.5/page/feed#Creating

    More information about Tokens: