Friends attending an event using the Graph API v2.1

I need to get all friends visiting an event using graph API ver 2.1, the solution I found is to use FQL as shown below, but the query does not work correctly as the friends table does not fetch all friends, also FQL is not supported in version 2.1.

Any ideas?

SELECT uid, name, pic FROM user WHERE uid IN (SELECT uid FROM event_member WHERE eid =1564532200443313 AND rsvp_status = 'attending' AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()))

+3


source to share


1 answer


I think you answered your own question.

If v2.0 and above only upload friends using the app, your request to find all friends (so you can check who is attending the event) will not work

The best you can do is



EVENT_ID/attending?fields=id, name, picture{url}, rsvp_status

What looks like

SELECT uid, name, pic FROM user WHERE uid IN (SELECT uid FROM event_member WHERE eid =EVENT_ID)

0


source







All Articles