我想在上个月从一个页面获得一些帖子。有没有可用脸谱图API?另外,仅供参考,我只需要access_token来与Facebook API进行交互。
也有人知道如何在上个月获取页面提及的数量?
感谢您的帮助。
尝试使用Facebook Graph API使用Facebook Page Insights:
https://developers.facebook.com/docs/graph-api/reference/insights/#page_posts
但请注意,您需要成为此页面的页面管理员,并且您需要获取Page Access Token with the permissions 'read_insights'。
如果您不是页面管理员,那么您也可以使用User Access Token or an App Access Token执行相同的操作。
脚步:
https://graph.facebook.com/{page-id}/posts
。postsCount = postsCount + {the posts json array size}
,那么转到第3步。笔记:
{the posts json array size} > 0
注释(summary(true)
),但我无法使它工作。因此,故事的寓意是,如果您不是该页面的管理员,我不确定Facebook是否真的希望您抓取其页面。 :-)