通过API更新Facebook页面墙通过API

问题描述:

我很难将内容发布到Facebook Page Wall,并且也发现了有关如何完成此操作的最新文档(我在这里所找到的其他问题中找到的链接的Facebook页面缺失或损坏)。通过API更新Facebook页面墙通过API

我正在编写的应用程序会定期将内容按计划从ruby on rails应用程序通过cron作业/ rake任务推送到粉丝页面墙。我希望有人可能有最新的指导或指导如何推动内容到Facebook的页面墙。

任何帮助,将不胜感激。

请看看我对这个问题的一个旧帖子。

Easy way of posting on Facebook page (not a profile but a fanpage)

希望它能帮助!

+0

谢谢!你的建议和Love Sharmas关于如何检索令牌的方向是非常有帮助的。我希望我可以接受你的答案,但我只能选择一个,所以我选择了你的答案。 – bdorry 2011-04-18 14:46:58

考拉岩石我的世界!

假设您已经向其墙壁要求写入权限(首先阅读:http://developers.facebook.com/docs/authentication/ [请注意'范围'参数]请参阅此权限:http://developers.facebook.com/docs/authentication/permissions/ [您需要申请publish_stream permisson],然后读https://github.com/arsduo/koala/wiki/OAuth),并有有效的OAuth令牌,它的那样简单:

@graph.put_wall_post("hey, i'm learning koala") 

https://github.com/arsduo/koala/wiki/Graph-API

此外,在ROR考拉阅读https://github.com/arsduo/koala/wiki/Koala-on-Rails

请参阅OAuth例子点击:http://oauth.twoalex.com/(源代码:https://github.com/arsduo/oauth_playground

+0

谢谢!我希望我可以选择多个答案,因为你和Kleber都帮助我在今天上午工作。 – bdorry 2011-04-18 14:49:24