Facebook User vs Event (get RSVP status for user on event) -
is there better way of checking rsvp status of user (logged in our application) vs. specific event through graph api, calling /v2.3/{user_id}/events
, going through events find 1 we're interested , rsvp_status
field there?
what i've tried, , didn't work:
/v2.3/{user_id}/events/{event_id}
/v2.3/{user_id}/events?event={event_id}
/v2.3/{user_id}/events?event_id={event_id}
- calling of them, find out if user in of rsvp groups:
/v2.3/{event_id}/{attending|invited|maybe|declined|noreply}?user={user_id}
also fql not solution, if wants c&p existing fql answers, because that's deprecated since api v2.0
this related answer wondering efficiency on using graph api, because pulling user's events , going through them both time , resource expensive operation
ok, found answer, quite simple:
/v2.3/{event_id}/invited?user={user_id}
currently method will
- return nothing, if user not yet part of event (was never invited , never attended/maybe himself)
- return 1 object, user object ,
rsvp_status
/invited
(what we've seen testing) contains both users invited event, , users joined event (so don't confused word invited
, @ least unless facebook changes api again)
Comments
Post a Comment