1

好吧,这是我的收获

    public GraphResponse Get(String query,Bundle parameters)
    {
        final GraphResponse[] respuesta = new GraphResponse[1];
        /* make the API call */

        new GraphRequest(
                AccessToken.getCurrentAccessToken(),
                query,
                parameters,
                HttpMethod.GET,
                new GraphRequest.Callback() {
                    public void onCompleted(GraphResponse response) {
            /* handle the result */

                        respuesta[0] =response;
                    }
                }
        ).executeAndWait();
return  respuesta[0];
    }

这适用于me查询现在我尝试使用me/groups查询,现在如果我尝试获取用户所属的所有组,我得到了

{
  "data": [
  ]
}

这也发生在资源管理器中

https://developers.facebook.com/tools/explorer/

在这最后,我选择了所有许可和特别许可,我得到了相同的答案。

在此处输入图像描述

那么我的问题是,如果没有办法在 V2.5 上获取此列表,我如何(继续使用 2.5 版)“更改”(仅)此查询的版本到 2.3,它确实有效?

我试着做这个查询 /v2.3/me/groups ,但我得到了空白的答案。

我的应用程序 facebook 是“今天”创建的

4

2 回答 2

1

无法再获取所有组,只能获取您使用user_managed_groups权限和/me/groups端点管理的组。

于 2017-11-10T08:41:16.847 回答
-1

不完全是您想要的,但是如果您知道组 ID,则可以使用访问令牌和此 url 来查询所有成员以帮助您入门 https://graph.facebook.com/v2.3/ {enter group id} /members?access_token={输入您的访问令牌}&limit=1000

于 2016-10-24T05:13:52.317 回答