mateuscb
mateuscb

Reputation: 10710

How to get user count by status of facebook events (attending, Invited, etc..)

Is there any way to get the user count by status of facebook events? Facebook does this on the event page (the left columng with each status has a count next to it), but could not find any documentation on how to do the same. It needs to work for small or large events. For small events, I can easily get the list of users and do a quick count. But for events with over 1000 users, the previous method is too slow and not acceptable.

Upvotes: 0

Views: 2044

Answers (1)

nms
nms

Reputation: 183

I don't think there's a better way than count every list of users as explained below.

You can which users are 'attending' an event by issuing an HTTP GET to /EVENT_ID/attending

You can which users have replied 'maybe' to an event by issuing an HTTP GET to /EVENT_ID/maybe

You can which users are declined an event (i.e. responded 'no') by issuing an HTTP GET to /EVENT_ID/declined

You can which users have not replied to an event by issuing an HTTP GET to /EVENT_ID/noreply

Taken from https://developers.facebook.com/docs/reference/api/event/

UPDATE 28-Jun:

As of today, Facebook added new fields to the Event FQL table that allows you to do exactly what you want.

From the developers blog:

We've added the following fields to the event FQL table to make it easier to get the counts of users RSVP-ed to an event:

all_members_count
attending_count
unsure_count
declined_count
not_replied_count

They're pretty much self-explanatory.

Upvotes: 3

Related Questions