How to set a place for an event using the Graph API

When I create events, I tried to add the details of the place, similar to how it looks below, but the information about the place seems to be ignored. (I am posting it to / me / events)

An event is otherwise generated successfully. How can I set the venue during the creation process? Do I need to create it later? Thanks

{ "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" } 
+6
source share
1 answer

get rid of the "place" {} 'and just use the state city of the state, etc.

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

Source: https://habr.com/ru/post/897064/


All Articles