我想从我加入的一个封闭组中抓取帖子。我看了facebook api,但我仍然不知道如何解决这个问题。我读了这个帖子Facebook API / httpclient wrapper for crawling through the wall posts & group posts of any user?。但它已经过时了,并没有提供好的答案。
您可以尝试使用Graph API Explorer来测试代码
基本上,您可以发送http请求来访问数据
得到
https://graph.facebook.com/{group-id}/feed?access_token={token}
2019年更新:您无法从组fb获取数据,因为他们添加了新权限,您必须使用它们验证您的应用程序。