https://developers.facebook.com/docs/graph-api/reference/user/groups 用于 Graph API 版本 v3.1 似乎表明如果应用程序已通过应用程序审查或应用程序处于开发阶段,则可能有解决方案。
https://developers.facebook.com/docs/graph-api/reference/v3.1/group 表示具有权限的另一种可能性:
groups_access_member_info — Enables your app to receive member-related data on group content.
publish_to_group — Enables your app to post content into a group on behalf of a user.
user_managed_groups — Enables your app to read the Groups of which a person is an admin.
话虽如此,user_managed_groups 权限不在可以请求的权限列表中,即使在使用测试应用程序的开发模式下,我也会收到一条错误消息:
English Quiz - Test1
Ethan 100029439245680
==== Query
curl -i -X GET \
"https://graph.facebook.com/v3.1/100029439245680/groups?access_token=<access token sanitized>"
==== Access Token Info
{
"perms": [
"user_friends",
"groups_access_member_info",
"public_profile",
"basic_info"
],
"user_id": 322852501618049,
"app_id": 867918616743637
}
==== Parameters
- Query Parameters
{}
- POST Parameters
{}
==== Response
{
"error": {
"message": "Unsupported get request. Object with ID '100029439245680' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "EvrL0yxzs/q"
},
"__debug__": {}
}