Graph API - Get events by owner/creator

后端 未结 4 1598
面向向阳花
面向向阳花 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:38

    The answer from zechdc is perfect but I just needed to add strtotime for the start_time to work.

    $start_time = date('M j, Y \a\t g:i A', strtotime($key['start_time']));
    $end_time = date('M j, Y \a\t g:i A', strtotime($key['end_time']));
    

提交回复
热议问题