How to post to page as an app?

女生的网名这么多〃 提交于 2019-12-02 20:49:10

问题


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.


回答1:


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/


来源:https://stackoverflow.com/questions/26219104/how-to-post-to-page-as-an-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!