How to get the list of facebook groups using graph api

旧巷老猫 提交于 2019-12-05 11:17:56

Short answer: user_groups is deprecated with v2.4, see

the user_groups permission has been deprecated. Developers may continue to use the user_managed_groups permission to access the groups a person is the administrator of. This information is still accessed via the /v2.4/{user_id}/groups edge which is still available in v2.4.

PirateApp

What are you looking for exactly?

  1. The list of all groups that you are a member of?
  2. The list of all groups that you admin?

I am not sure about A but at the time of writing this answer, Graph API v2.5 is the latest version and you can find the list of all the groups where you are the admin by using the admined_groups endpoint. You need the permission user_managed_groups in your Access Token, without the permission you will get empty data.

Here is a link to the endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!