Facebook Graph Api v2.0+ - /me/groups returns empty

后端 未结 2 1126
执笔经年
执笔经年 2020-12-21 22:50

I am trying to get my groups with graph api v2.0, but data returns empty:

{
  \"data\":  []
}

Before this I used v1.0 and this was workable

相关标签:
2条回答
  • 2020-12-21 23:16

    https://developers.facebook.com/docs/facebook-login/permissions/v2.3

    user_groups

    Enables your app to read the Groups a person is a member of through the groups edge on the User object.

    This permission does not allow you to create groups on behalf of a person. It is not possible to create groups via the Graph API.

    Review

    If your app requests this permission Facebook will have to review how your app uses it.

    Limited Use

    This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop, in-car and TV apps will not be granted this permission.

    In short: Facebook will no longer approve user_groups permission for most developers starting from 30 Apr 2015.

    0 讨论(0)
  • 2020-12-21 23:22

    The group you are mentioning is a closed group. In order to access anything about that group, you need to have the user_groups permission. Facebook's policy is to deny that permission to ANYONE unless they are coding for a platform that does not have a native Facebook app. If you are coding for Android iOS, or Windows Mobile, you are probably out of luck... =(

    0 讨论(0)
提交回复
热议问题