I need to find all of the members of a group.
$members = $facebook->api_client->groups_getMembers(12345);
where 12345 is the
ID) of your target group.
returns a multidimensional array in which the first level of elements
are the four membership types (
not_replied), each containing the
appropriate set of
representing all of the members of that category whom the current
loggedinuser is allowed to see.
Note that the
contains all of the
officers but does not overlap with
not_replied array. These lists
are not filtered for users of your application, so note that they
might contain users who don’t have it installed.
If you’d prefer to use FQL to access group members, the equivalent query is:
SELECT uid, gid, positions FROM group_member WHERE gid=$gid
See Listing Table for more information.