Search code examples
facebookfacebook-graph-api

how to crawl post posed in a closed group on facebook


I want to crawl posts from a closed group I have joined. I read the facebook api but I still do not know how to solve this problem. I read this thread Facebook API / httpclient wrapper for crawling through the wall posts & group posts of any user? . But it is old and no good answers are provided.


Solution

  • You can try Graph API Explorer to test your code

    Basically, you can send http request to access the data by

    GET

    https://graph.facebook.com/{group-id}/feed?access_token={token}
    

    Update :

    You can no longer use this endpoint until an admin of such group install your app on it. It is also necessary that your app goes through the Facebook App Review process.