Graph API - Get events by owner/creator

后端 未结 4 1601
面向向阳花
面向向阳花 2021-02-01 08:56

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.

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 09:43

    You can use FQL. Just using the creator as your where clause does not work because the creator is not indexable. However a workaround is to include an indexable where clause and throw in the creator in addition. Ex:

    SELECT eid, name, pic, creator FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid=12345) AND creator=12345

提交回复
热议问题