Checking for event-rsvp status and showing disabled/enabled RSVP-button

后端 未结 3 682
日久生厌
日久生厌 2021-01-15 02:23

I\'m still a bit unsure how I would find this in the documentation, but I\'d like to check whether the logged-in user has RSVP\'ed to an fb-event or not, and show the \"I\'m

3条回答
  •  难免孤独
    2021-01-15 02:57

    Actually, there's an easier way to do all of this. The problem with the FQL query is that there's a delay of like 15-30 seconds after you submit the RSVP for the status to show up. But this works in the graph API without pagination. Try a GET request in this form:

    /[event id]/invited?user=[user_id]&access_token=[access_token]

    It'll return a data structure with the rsvp_status if the user has RSVPed at all, including for public events where that user wasn't technically "invited." If the data structure is blank, then they haven't RSVPed at all.

提交回复
热议问题