get list all groups facebook graph api v2.5 or how to use the v2.3?

2k Views Asked by At

well this is my get

    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];
    }

and this works fines with me queries now I tried with me/groups query, now if I try get all the group where user is memeber of, I got

{
  "data": [
  ]
}

this happens too on explorer in

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

on this last I had choosen all the permission and especial permission and I got the same answer.

enter image description here

then my ask is, If there is not a way for get this list on V2.5 how can I (continue using the version 2.5) "change" for (only) this query the version to 2.3 where it does works?

I tried doing this query /v2.3/me/groups but I got blank answer.

My app facebook was created "today"

2

There are 2 best solutions below

0
On

Not exactly what you want, but if you know the group id you can query all the members by using an access token and this url to get you started https://graph.facebook.com/v2.3/{enter group id}/members?access_token={enter your access token}&limit=1000

0
On

There is no way to get ALL groups anymore, it is only possible to get groups you manage with the user_managed_groups permission and the /me/groups endpoint.