如何发布到页面作为应用程序?

问题描述:

所以,我有一个应用程序(Facebook应用程序实体),我有一个页面。我想使用应用程序发布到页面,通过java代码(通过restfb或任何其他建议)。看起来我错过了该页面允许应用发布的阶段。不知道该怎么做
谢谢大家。
Uri。

So, I have an app (facebook app entity), and I have a page. I want to post to the page using the app, through the java code (by restfb, or any other suggestion). Looks like I am missing the phase where the page gives permission to the app to post. No idea how to do it. Thank you all. Uri.

您只能发布作为页面而不是作为应用程序。您需要一个页面访问令牌,您需要使用/ page-id / feed端点来发布。链接信息和示例代码:

You can only post "as Page", not "as App". You need a Page Access Token and you need to use the /page-id/feed endpoint to post. Links with information and example code:

  • https://developers.facebook.com/docs/facebook-login/access-tokens/
  • https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed/
  • http://www.devils-heaven.com/facebook-access-tokens/
  • http://www.devils-heaven.com/extended-page-access-tokens-curl/