2011-04-18 118 views
2

我很難將內容發佈到Facebook Page Wall,並且也發現了有關如何完成此操作的最新文檔(我在這裏所找到的其他問題中找到的鏈接的Facebook頁面缺失或損壞)。通過API更新Facebook頁面牆通過API

我正在編寫的應用程序會定期將內容按計劃從ruby on rails應用程序通過cron作業/ rake任務推送到粉絲頁面牆。我希望有人可能有最新的指導或指導如何推動內容到Facebook的頁面牆。

任何幫助,將不勝感激。

回答

1

請看看我對這個問題的一箇舊帖子。

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

希望它能幫助!

+0

謝謝!你的建議和Love Sharmas關於如何檢索令牌的方向是非常有幫助的。我希望我可以接受你的答案,但我只能選擇一個,所以我選擇了你的答案。 – bdorry 2011-04-18 14:46:58

0

考拉岩石我的世界!

假設您已經向其牆壁要求寫入權限(首先閱讀: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

相關問題