Frans
Frans

Reputation: 1448

Create event with a venue with Graph API

Is it possible to set the venue when creating a location using Graph API? So that it's actually linked to the Facebook Place.

The goal is to show the map, but I'm fairly certain that for some reason requires a Place.

{
"name": "Dans till Zlips",
"start_time": "2011-09-11T00:00:00",
"end_time": "2011-09-11T03:00:00",
"location": "Yesterday",
"street": "Skyttevägen 4",
"city": "Vallentuna",
"country": "Sweden"
}

I think this should show a place. It does not. Setting longitude, latitude or venue id (suppose that's the id of the Place) does not work.

Right now I have to manually change the location in the event edit menu if I want to have it linked, which isn't really fun or feasible when you have a couple of hundred events.

Upvotes: 3

Views: 1565

Answers (1)

Igy
Igy

Reputation: 43816

There's a (currently undocumented) parameter which will mark a created event as taking place at a particular Place - When creating the event add the location_id parameter and set it to the ID of the Facebook Place you want

Upvotes: 4

Related Questions