List the members of a Facebook group via API

后端 未结 5 780
长情又很酷
长情又很酷 2020-12-13 23:32

Is is possible to list the members of a Facebook group using the Facebook API? If yes, how?

相关标签:
5条回答
  • 2020-12-13 23:48

    This is no longer possible:

    This edge was deprecated on April 4th, 2018, and can no longer be used.

    0 讨论(0)
  • 2020-12-13 23:49

    First you need an access token. I'd recommend this article:

    http://benbiddington.wordpress.com/2010/04/23/facebook-graph-api-getting-access-tokens/

    If you want a permanent access token you must ask for the "offline_access" extended permission on getting it.

    After that, it's just a matter of issuing a REST API call:

    https://graph.facebook.com/[GROUPID]/members?access_token=[ACCESSTOKEN]

    and you'll receive a JSON list of all the members of that group. Very handy!

    0 讨论(0)
  • 2020-12-13 23:49

    Check the members link on

    http://developers.facebook.com/docs/reference/api/group

    If you click on that link it will generate a oauth token for you, then simply substitute the groupid

    It will only return 500 members though

    0 讨论(0)
  • 2020-12-13 23:50
     Request request = new Request(Session.getActiveSession(),
                    groupId+"/members", bundle,
                    HttpMethod.GET, new Request.Callback() {}
    Request.executeBatchAsync(request);
    
    0 讨论(0)
  • 2020-12-13 23:51

    Yes - use the members connection. Check out the Group reference on the Graph API.

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