Facebook – Get List of Members of a public group from Facebook

facebookfacebook-fqlfacebook-graph-api

I want to get list of ALL members of a public group using Facebook API ( preferably via FQL ). I checked https://developers.facebook.com/docs/reference/fql/ .. The table group_member does not provide such API !

Any inputs ? As this is a public group ; do we need to send any auth_access tokens ! Something like https://graph.facebook.com/fql?q=SELECT%20url,normalized_url,share_count,like_count,comment_count,total_count,commentsbox_count,comments_fbid,click_count%20FROM%20link_stat%20WHERE%20url='google.com'

works fine without any tokens..

Best Answer

No permissions are needed.

To read the group_member table you need:

  • any valid access_token if the group is public (i.e. the group's privacy setting is OPEN)

Source: https://developers.facebook.com/docs/reference/fql/group_member/

Using Graph API

GROUP_ID/?fields=members

{
  "id": "GROUP_ID", 
  "members": {
    "data": [
      {
        "name": "User's name", 
        "administrator": false, 
        "id": "User's ID"
      },
      ...

Using FQL

SELECT uid FROM group_member WHERE gid = GROUP_ID

{
  "data": [
    {
      "uid": "100004123456789"
    }, 
    ...
Related Topic