如何使用Graph API为事件设置场地

时间:2011-09-10 23:40:05

标签: facebook facebook-graph-api

当我创建活动时,我尝试添加类似于下面的场景细节,但场地信息似乎被忽略了。 (我将它发布到/ me / events)

否则会成功创建事件。如何在创建过程中设置场地?我需要在之后创建它吗?感谢

{
  "owner": {
  "name": "David R",
  "id": "234234"
},
"name": "sdf",
"description": "tes",
"start_time": "2011-09-11T00:00:00",
"end_time": "2011-09-11T03:00:00",
"location": "sadf",
"venue": {
"street": "weber",
"city": "Waterloo",
"state": "Ontario",
"country": "Canada"
},
"privacy": "SECRET",
"updated_time": "2011-09-10T23:22:23+0000",
"type": "event"
}

1 个答案:

答案 0 :(得分:7)

摆脱'“场地”{}',只使用城邦国家等。

{'name':"neverland",
'city':"los angeles",
'description':"ontherparty",
'location':"sames",
'start_time': "9-12-2011 12:45"
}