Creating Facebook Event - Graph API - facebook

I have gotten the access token with the correct permissions to manage events etc. However, the following:
https://graph.facebook.com/{pageID}/events?access_token=xxxx&name%3Dtest%26description%3Dtest%2520description
(I have not included the credentials here)
Upon testing the above does not create a name value or description for the event - the page just returns a blank data object.
Is it possible to create some test data for an event through the browser address bar and if so what is the correct syntax?

As per Facebook's documentation in: https://developers.facebook.com/docs/graph-api/reference/v2.0/event#publish
Publishing
You cannot create events via the Graph API.
Use Facebook SDK instead: https://developers.facebook.com/docs/javascript/reference/FB.api

I spent a long time battling this too.
TL;DR - graph v1.0 allows event creation, graph v2.0 does not.
Facebook Graph API 1.0 "events" allows you to create events (all CRUD actions) and is fully described in the docs. Graph version 2.0 does not allow you to CRUD event data. This is where the other answer came from.
Graph version 1.0 will be depricated April 30, 2015 (official changelog).

Related

Create event from the facebook Graph API

According to the FB graph API documentation: https://developers.facebook.com/docs/graph-api/reference/event/#Creating
Creating
Permissions
An access token of an Admin of the Event if required.
You can make a POST request to live_videos edge from the following paths:
/{event_id}/live_videos
When posting to this edge, an Event will be created.
However this is ambiguous - it seems like its referring to live videos, not creating an event itself.
So my question is, in 2018 after all the Cambridge Analytica API shutdowns and permissions changes, how do I programatically create a Facebook event in Javascript having access to the admin page token?
Thanks
Hitting /me/events, I get this return:
(#12) events management API is deprecated for versions v2.0 and higher"
Similar post here: OAuthException: (#12) events management API is deprecated for versions v2.0 and higher
Live videos can be created on existing events (as you have pointed out). But not the ability to create/manage events.

Is it possible to publish Events to Facebook via the SDKs or API still? [duplicate]

I have gotten the access token with the correct permissions to manage events etc. However, the following:
https://graph.facebook.com/{pageID}/events?access_token=xxxx&name%3Dtest%26description%3Dtest%2520description
(I have not included the credentials here)
Upon testing the above does not create a name value or description for the event - the page just returns a blank data object.
Is it possible to create some test data for an event through the browser address bar and if so what is the correct syntax?
As per Facebook's documentation in: https://developers.facebook.com/docs/graph-api/reference/v2.0/event#publish
Publishing
You cannot create events via the Graph API.
Use Facebook SDK instead: https://developers.facebook.com/docs/javascript/reference/FB.api
I spent a long time battling this too.
TL;DR - graph v1.0 allows event creation, graph v2.0 does not.
Facebook Graph API 1.0 "events" allows you to create events (all CRUD actions) and is fully described in the docs. Graph version 2.0 does not allow you to CRUD event data. This is where the other answer came from.
Graph version 1.0 will be depricated April 30, 2015 (official changelog).

creating event via facebook graph api

Is there any way to create facebook event via code (as of today), referred to the documentation :
for v2.0
for v1.0
Publishing was possible in v1.0 but not in v2.0. Is there legacy API support which I can use to create facebook events ?
Any help appreciated.
If your app is a Graph API v2.0 app (created after April 30th 2014), you don't have the possibility to create events anymore via the Graph API.
If your app is v1.0, the possbility to create events will vanish on May 1st 2015.

Replacement for deprecated event handling in Graph API

I have a hyper-critical Facebook app (for our organization) that used Graph API v1.0 to read and post events for our [closed] Facebook group. Now that Graph v1.0 is deprecated and event support is "no longer supported" for Graph v2.0 it has literally killed our ability to use this app - or Facebook itself for our social media needs.
Are there any other or "replacement" APIs that would allow my app to post events - even if it is just into one, single, controlled group?
This isn't a great solution, but the 1.0 API will be available through April 2015. You could downgrade to the old API until then - certainly not a good long term plan, but it could give you time to find another option

How do I publish an activity on facebook using the Graph API

The old Facebook Legacy REST API had a function dashboard.publishActivity, however the new Graph API only allows messages to be posted on /me/feed.
Is there a way to send activities using the Graph API?
As mentioned in http://developers.facebook.com/blog/post/552/ Facebook "have removed the section which displayed the News that developers published via the Dashboard APIs in the Games Dashboard". Therefore the dashboard.publishActivity function no longer provides any useful functionality. My recommendation is to switch to either using stream posts or to Requests 2.0, as these will provide the same sort of distribution that you're looking for.