如何发布到页面作为应用程序? [英] How to post to page as an app?

查看:158
本文介绍了如何发布到页面作为应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有一个应用程序(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/

这篇关于如何发布到页面作为应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆