Zhen Liu
Zhen Liu

Reputation: 7920

how to get all the events from a user with facebook graph api?

I asked access to user_events and friends_events. And this is the url that i get the json stuff from.

https://graphs.facebook.com/me/events?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I kept getting {"data":[]}

I checked out my facebook page and i have like a million events.

Upvotes: 2

Views: 6688

Answers (1)

João Mosmann
João Mosmann

Reputation: 2902

Using https://graphs.facebook.com/me/events only gets events that you participate or are unsure.

But. You can use FQL to get all events from a user. Participanting or Not.

select eid, uid, rsvp_status from event_member where uid = me()

rsvp_status can be

"attending","declined","not_replied" and "unsure"

check here

Upvotes: 4

Related Questions