How do I visit visitors using the FB Graph API?
I would like to visit a guest account from an event using the Facebook Graph API v2.1 . I cannot use the FQL query because it is deprecated after the current version.
I can use / {event-id} / visit and sum all guests, but this solution is very inefficient (requests take a long time - usually> 2000ms and it only works for ~ 1000 guests, no more).
+3
source to share
1 answer
If you call the event ID itself, you can add fields for attending_count
, declined_count
and maybe_count
to get the totals easily.
Example:
https://graph.facebook.com/{event_id}?fields=attending_count,declined_count,maybe_count
If I do the following:
https://graph.facebook.com/468185256651918?fields=attending_count,declined_count,maybe_count
I see:
{
"attending_count": 304,
"declined_count": 277,
"maybe_count": 97,
"start_time": "2014-09-06T20:00:00+0100",
"id": "468185256651918"
}
+13
source to share