Is it possible to programmatically add an event to a page using Facebook Graph API? If yes, what HTTP request shall be made?
For example, Startup Weekend has events on its Facebook page. These events can be added using Graph API Event object?
Is it possible to programmatically add an event to a page using Facebook Graph API? If yes, what HTTP request shall be made?
For example, Startup Weekend has events on its Facebook page. These events can be added using Graph API Event object?
UPDATE
Creating event with the API is no longer possible in v2.0+. Check: https://developers.facebook.com/docs/apps/changelog#v2_0
Yes it's possible.Permissions:
create_event
manage_pages
So first you get the page id and its access token, through:
The Result will be something like:
UPDATE: To retrieve the page's
access_token
you could now call thepage
object directly like:The access token, if successful call, should be accessible:
$page_info['access_token']
Now you get the Page ID and access token and use the
events
connection:And you are done! :-)