Is there a way with the Facebook Graph API to get a list of all events created by a single profile? Our client creates a bunch of events and we want to pull a list of them all. I said that they would just have to make sure they set themselves to be attending the event, because then I can easily pull the list of events that profileId is attending, but I’m curious if there’s another way. Maybe an FQL query? They look to require a query on the primary key though. And what would that FQL query look like if that’s the way to do it??
Share
I basically used the
FQLthat @jhchen provided. However, it took me about 6 hours to figure out how to use thatFQL. So I figured, I would provide you a working script. It’s not perfect so please update it if you find a bug.YOUR_APP_IDYOUR_APP_SECRETPAGE_IDFQLstatement as you see fit. FQL DocumentationOther than that you should be good to go. Also, I set the default timezone to
America/Los_Angeles. This will probably cause problems for some of you, if anyone has a better way to handle the timezones please let me know.PHP Code: