How can I show Group-Members Profil Pictures
First of all, my question is:
How can i show all Members Profile Picture of my group, on a page ?
What i know and what i have done:
- I have a Access Token
- I have all User IDs of the group members
Is there any way like ... to show all pictures ? - or how have i do it ?
https://graph.facebook.com/[GROUPID]/memb开发者_开发百科ers?access_token=[ACCESSTOKEN]
$members = json_decode(@file_get_contents('https://graph.facebook.com/'.$group_id.'/members?access_token='.$access_token);
foreach($members->data as $member) {
echo('<li><img src="https://graph.facebook.com/'.$member->id.'/picture?type=square" />'.$member->name.'</li>');
}
精彩评论