Reputation: 111
I am developing an application of create event in facebook . It has a regiatration page when a user creates event he can sell or buy ticket .the question is how can i show facess of people who are attending the event created by my application?
Upvotes: 2
Views: 872
Reputation: 38135
To get the users who are attending, you need to call the "attending
" connection of the event
object:
https://graph.facebook.com/EVENT_ID/attending?access_token=XXXXXXXXX
Then you could use the approach mentioned by @jmeyo.
Upvotes: 3
Reputation: 2071
If you've got the facebook ids ($uid) of the people who are attending to your event, you can show their face with a img tag with the href from this quick function:
public function getPicture($uid, $size) {
return "https://graph.facebook.com/".$uid."/picture?type=".$size;
}
There is several sizes :
see http://developers.facebook.com/docs/reference/api/
Upvotes: 3