Creating Facebook Event - Graph API

I got an access token with the correct permissions for event management, etc. However, the following:

https://graph.facebook.com/{pageID}/events?access_token=xxxx&name%3Dtest%26description%3Dtest%2520description 

(I did not include credentials here)

When testing above, no name or description for the event is created - the page simply returns an empty data object.

Is it possible to create some test data for the event through the address bar of the browser, and if so, what is the correct syntax?

+8
facebook facebook-graph-api
source share
2 answers

According to Facebook documentation: https://developers.facebook.com/docs/graph-api/reference/v2.0/event#publish

Publishing house

You cannot create events through the Graph API.

Use the Facebook SDK instead: https://developers.facebook.com/docs/javascript/reference/FB.api

+11
source share

I also struggled with this for a long time.

TL; DR-graph v1.0 allows you to create events, but graph v2.0 does not work.

Facebook Graph API 1.0 "events" allows you to create events (all CRUD actions) and is fully described in the documents. Graph version 2.0 does not allow the transmission of CRUD event data. This is where another answer came from.

The graph of version 1.0 will be deprived on April 30, 2015 ( official change log ).

+7
source share

All Articles