在没有审核过程的情况下,无法在Facebook API Version2中为应用开发者帐户发布事件



我创建了一个Facebook应用程序,我想发布事件。但在Facebook API升级到第2版后,我明白还有一个审查过程要做。但正如文件中提到的,应用开发者账户应该能够在没有审查过程的情况下发布事件。我无法发布事件,即使与应用程序开发人员帐户。它给了我以下错误:

发送参数到https://graph.facebook.com/1440689676189017/events:

name=newEvent&start_time=2014-06-05T18:30:00+0000&end_time=2014-06-29T19:30:00+0000&description=&access_token=ACCESS_TOKE&format=json
6 Jun, 2014 11:01:37 AM com.restfb.DefaultFacebookClient makeRequestAndProcessResponse
INFO: Facebook responded with HTTP status code 400 and response body: {"error":{"message":"(#12) events management API is deprecated for versions v2.0 and higher","type":"OAuthException","code":12}} 

有人能给我一个想法,为什么这种情况发生,甚至为开发人员帐户?

您可以查看错误消息:

{"error":{"message":"(#12) events management API is deprecated for versions v2.0 and higher","type":"OAuthException","code":12}}

在Graph API v20.0中不能再通过API发布事件。它写在文档中:

  • https://developers.facebook.com/docs/graph-api/reference/v2.0/event/发布
  • https://developers.facebook.com/docs/apps/changelog v2_0_permissions

引用:

你不能通过图形API创建事件。

,

create_event不再可用。

最新更新