2011-04-15 55 views

回答

0

當然是有可能的。

您需要擁有應用的[read_stream]權限。更多信息: https://developers.facebook.com/docs/authentication/permissions/

你可以通過圖形API朋友的牆飼料:

$用戶ID = 123456; //你的用戶名

$ json_output = $ facebook-> api('/ $ userid/feed?fields = id,message,created_time,likes,comments,type & limit = 0 & since = 2010-01-01 & until = 2011-04-23');

這將返回一個json數組,您將可以輕鬆地閱讀帖子。 注意我添加了特定的字段,我希望得到,所以處理請求所需的時間會更短。 我也增加了限制= 0來獲得所有wallposts(通常圖形返回只有少量,你必須使用「分頁」)。注意日期。

瞭解更多信息: https://developers.facebook.com/docs/reference/api/

相關問題