FQL my friends who are attending a particular even

2019-06-08 08:33发布

问题:

I am trying to find all my friends who are are attending a particular event of interest. I think the right way to do it is with FQL. What would be the query to do that?

回答1:

Based on the example in the event_member fql table:

SELECT uid FROM event_member WHERE eid = ... AND rsvp_status = 'attending'

I suppose you could use something like:

SELECT uid FROM event_member WHERE eid = ... AND rsvp_status = 'attending' AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())