skip to Main Content

I’m trying to get a list of the user’s Facebook groups.
To do this, I analyze the documentation to understand it (Graph API) :

https://developers.facebook.com/docs/graph-api/reference/v3.2/user/groups

However, when I use this query, I get no results

I’ve done a lot of research.
And from what I understand, it is no longer possible today to obtain the list of user groups (depeacrated)

However, I do not understand. The documentation page still exists, for version 3.2 ( https://developers.facebook.com/docs/graph-api/reference/v3.2/user/groups) and nothing says that this is no longer possible.

Documentation says :

Returns a list of Groups where the User is a member and the User has granted the app any Group-level permissions for that Group “

My code :

FB.api(
    "/" + id + "/groups",
    function (response) {
      if (response && !response.error) {
        console.log(response);
      }
    }
);

I would like to get a list of all the user’s groups, not just the groups where he is an admin.

2

Answers


  1. https://developers.facebook.com/docs/graph-api/reference/user/groups/

    admin_only=true

    pass this parameter you will get only list of those groups where you are admin.

    Login or Signup to reply.
  2. I managed to get the groups, when askd for groups_access_member_info permission during the facbook-login process, but it asks too much: with this permission app can post in your groups as well and can read former posts. I guess nobody will give you this rights, it seems this feature is over.

    Additionally: in my privacy settings i found that the list of my groups are private information (haven’t set is explicitly .. at least i dont remember) so it’s maybe practically deprecated because of this default setting.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search