我创建了一个Facebook应用程序,我想发布活动。但在将Facebook API升级到版本2之后,我明白有一个审核流程要完成。但如上所述in the documentation, 应用开发者帐户应该能够在没有审核过程的情况下发布活动。即使使用应用开发者帐户,我也无法发布活动。它引发了以下错误:
使用参数(在请求正文中发送)对https://graph.facebook.com/1440689676189017/events执行POST:
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}}
有人可以告诉我为什么即使对于开发者帐户也会发生这种情况吗?
答案 0 :(得分:1)
您可以查看错误消息:
{"error":{"message":"(#12) events management API is deprecated for versions v2.0 and higher","type":"OAuthException","code":12}}
您无法使用Graph API v20.0通过API发布事件。它写在文档中:
行情:
您无法通过Graph API创建活动。
create_event不再可用。