How to get list of facebook groups using api chart

In Graph Api Explorer I did not find permission, for example user_groups. I select all “User Data Permissions” and “Advanced Permissions”, but this did not work.

In the graphical api explorer, I use this command GET->/v2.4/me/groups. and I get empty JSON data.

{
  "data":[
  ]
}

And if I use the old api graph version 2.2. Like GET->/v2.2/me/groups, then I get only groups in which I am not the administrator of all groups.

If anyone has this experience and has any solution, please help me solve my problem.

+4
source share
2 answers

Short answer: user_groupsDeprecated since v2.4, see

permission user_groupsis out of date. Developers can continue to use permission user_managed_groupsto access groups that are managed by a person. This information is still available over the edge /v2.4/{user_id}/groups, which is still available in version 2.4.

+3
source

What exactly are you looking for?

  • List of all the groups you are a member of?
  • List all the groups that you administer?

A, Graph API v2.5 , , , admined_groups. user_managed_groups , .

-

+4

Source: https://habr.com/ru/post/1606542/


All Articles