发布到 Facebook 页面墙 - 使用 Graph API?
我想从 python/django Web 应用程序发布到 Facebook 粉丝页面的墙上。
新的 Graph API 看起来漂亮又简单,所以我想使用它。除非有更简单的方法:-) 我猜 pyFacebook 包确实是我想要的,但它似乎使用旧的休息界面。对于我应该能够使用 Graph API 只需几行代码就能完成的事情来说,pyFacebook 可能完全是多余的。
看看新的 Graph API,看起来这应该非常简单。我已经创建了一个应用程序,并且可以毫无问题地发布到我的应用程序墙。但是,我的应用程序似乎无权发布到我的粉丝页面。有关如何启用此权限的任何提示?或者有更好的方法来做到这一点吗?
我是否需要自己的应用程序来执行此操作,或者是否有一个我已经可以使用的应用程序?
I want to publish to the wall of a Facebook Fan Page, from a python/django web application.
The new Graph API looks nice and simple, so I'd like to use that. Unless there is a much easier way :-) I'm guessing the pyFacebook package would do want I want, but it appears to use the old rest interface. pyFacebook is probably a complete overkill for something that I should be able to do in just a few lines of code with the Graph API.
Looking at the new Graph API, it appears that this should be really simple. I've created an application, and I can publish to my applications wall with no problems. However, my application doesn't appear to have permissions to publish to my Fan Page. Any tips on how to enable this permission? Or is there a much better way to do this?
Do I even need my own application to do this, or is there one out there that I can already use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的粉丝页面在其设置中允许任何用户在墙上发帖,那么您的应用应该能够只发布到/feed
如果您是粉丝页面管理员并且想要在粉丝页面的墙上发帖代表页面本身(不显示您的姓名),然后在此处阅读相关内容或更多详细信息此处。
If your fan page allows wall posts from any user in its settings, your app should be able to just post to
<page_id>/feed
If you are fan page admin and want to post on fan page's wall on behalf of the page itself (without showing your name), then read about it here or in more details here.