Search code examples
facebookfacebook-graph-apifacebook-apps

Create a bot for a closed facebook group


What I'm trying to do is basically described in this particular doc page from FB itself: click (post, comment content and listen for new content), but for a "normal" closed group instead of a group in a workplace.
According to the document, this would only be possible by storing the user access token of the group admin and use various graph API endpoints, but this does not seem like a good solution to me.

Is there any other known way (something like creating a Facebook app which will create posts, comment/like stuff and listens to new posts made in the group (similar to the group bots in workplaces))?

Thank you in advance! Luca


Solution

  • Is there any other known way (something like creating a Facebook app wich will create posts, comment/like stuff and listens to new posts made in the group (similar to the group bots in workplaces)) ?

    No, there is not.

    Reading posts and creating them using the group admin's token would be possible, but that's about it.

    • Liking posts in the name of users has generally been removed (not just for group posts),
    • commenting will likely not be possible either for any non-admin in a closed group, and
    • Webhooks do not cover non-workplace group feeds as of now either, so you'd have to do constant pulling to get new posts.