1

I know it's no longer to get a list of users of a given Facebook group, see List the members of a Facebook group via API.

But how can I get a list of all Facebook groups I'm member of?

Possibly, with the number of members? Something like:

Group ABC     30k members
Group DEF     5k members
Group GHI     40 members

How to do this with Facebook API, with Python?

Basj
  • 41,386
  • 99
  • 383
  • 673
  • https://developers.facebook.com/docs/graph-api/reference/user/groups/, https://developers.facebook.com/docs/graph-api/reference/v12.0/group#readfields – CBroe Sep 16 '21 at 06:45
  • @CBroe For the first, I see something like "This document refers to a feature that was removed after API of graph v3.2." Does it still work, until when? – Basj Sep 16 '21 at 07:31
  • Doesn't show that for me. Short test in Graph API Explorer seems to indicate it still works fine with v12.0 – CBroe Sep 16 '21 at 07:38
  • @CBroe Here some answers show it's deprecated: https://stackoverflow.com/questions/32472864/how-to-get-the-list-of-facebook-groups-using-graph-api – Basj Sep 16 '21 at 07:39
  • @CBroe Did you require the `user_groups` permission? I can't even add this in the app settings. – Basj Sep 16 '21 at 07:39
  • @CBroe Maybe can you post a sample code answer (in Python or PHP), showing how you achieved to do it? Here it returns an empty list, like in this question: https://stackoverflow.com/questions/32472864/how-to-get-the-list-of-facebook-groups-using-graph-api – Basj Sep 16 '21 at 07:42
  • I have one app for which it is currently working, and it is definitively showing me groups I am not an admin of. That app still had the `groups_show_list` permission from earlier, but I can't even find that one documented any more. So it might indeed be, that this is not possible any more. – CBroe Sep 16 '21 at 07:52
  • @CBroe Maybe I'm looking at the wrong place, can you share a screenshot where you can add / remove `groups_show_list`? Also, are you using `v12.0` and which graph version, where to see which graph version I'm using? 3.2, 2.3, 2.4, etc. – Basj Sep 16 '21 at 08:11
  • Like I said, it was an app that had that permission granted earlier already. I can remove and add it again for that app (directly with GAE), but not for others, it doesn't show in the list for those, when I start to type the permission name. Couldn't tell you what factors this depends on, sorry. – CBroe Sep 16 '21 at 08:16
  • Maybe you can post this last comment as an answer, it might be helpful for others, for future reference ; I'll accept your post. – Basj Sep 16 '21 at 08:35

1 Answers1

1

It seems that this is no more available in the latest version of the Facebook API, as seen in also How to get the list of facebook groups using graph api.

It is still possible for apps created before the change of the API, see @CBroe's comments.

Basj
  • 41,386
  • 99
  • 383
  • 673