如何按日期过滤Facebook API事件



我使用Facebook事件API来获取公共页面事件。但我只想要即将发生的事件,而不是那些已经结束的事件。所以我想按日期过滤它们。下面是我的代码:

FB.api(
  '/thebikerscafegurgaon/Events',
  'GET',
  {"fields":"category,attending_count,can_guests_invite,cover,description,end_time,declined_count,guest_list_enabled,id,interested_count,is_canceled,is_page_owned,is_viewer_admin,maybe_count,name,noreply_count,owner,parent_group,start_time,ticket_uri,updated_time"},
  function(response) {
      console.log("response",response);
  }
) 

请help.Thanks。

这个问题的答案很难找到,但你可以使用这个,例如,对于事件:{标识符}?字段= events.since(2017-05-23)除非(2017-05-24)

最新更新