João Menighin
João Menighin

Reputation: 3225

Get friends attending to an event

I searched in the documentation and in the web and didn't find anything about this.

So, when you go to an event page on facebook the list of people who are attending to the event seems to be ordered putting your friends in first place. I want to do that but I can't figure out how.

If I make:

https://graph.facebook.com/<event_id>/attending

I get all people who are attending and it seems it is ordered by when the person clicked on 'attending'.

If I make:

 https://graph.facebook.com/<event_id>/attending/<user_id>/friends

I get all friends of the user regardless if they are attending to the event or not.

I tried a lot of connections using Graph API Explorer (https://developers.facebook.com/tools/explorer) like getting the friends of the user and then trying to match them with that event, but could'nt find the solution.

Any help? Thanks in advance.

Upvotes: 1

Views: 1361

Answers (2)

Tim Nederveen
Tim Nederveen

Reputation: 135

The accepted answer doesn't work anymore, as facebook no longer allows event attendee requests without one of the event admins' access keys (see Graph api reference). As they also removed the option to access friends' events for privacy reasons, there is currently no way of doing this solely via the Graph API

Upvotes: 1

Colm Doyle
Colm Doyle

Reputation: 3858

Better to use FQL in this case. More suited to this type of nested question.

select uid, rsvp_status from event_member where eid = <EVENT_ID> and uid IN (SELECT uid2 from friend where uid1 = me())

That will return all friends of the person logged in who are attending the event you specify.

Upvotes: 3

Related Questions