繁体   English   中英

如何按日期过滤Facebook API事件?

[英]How to filter Facebook API events by date?

我正在使用Facebook Events 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);
  }
) 

请帮忙。谢谢。

很难找到答案,但是例如可以将其用于事件:{event-id}?fields = events.since(2017-05-23).until(2017-05-24)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM