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.
Related
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).
I am working on a project that requires getting the number of Likes and Shares of various links.
This can be done either by calling api.facebook.com or Graph API v1.0 in the public with no app and token required at all.
http://api.facebook.com/restserver.php?method=links.getStats&urls=http://www.example.com/
http://graph.facebook.com/http://www.example.com/
However, Facebook has started deprecating apps using Graph API v1.0, and their Platform Upgrade Guide makes no mention of api.facebook.com which predates Graph API v1.0.
Developers should expect apps calling API v1.0 to be migrated at any time after April 30th, 2015. The migration will roll out to all apps over the course of a few weeks.
Should I expect api.facebook.com to be deprecated along with Graph API v1.0, or will it be another sharer.php and be kept indefinitely?
It's announced as deprecated since a long time ago. Probably nobody will be able to tell you WHEN or IF Facebook will shut it down. But assume that this can happen anytime.
So, if you don't want to have your app suddenly break, then you should migrate to Graph API v2.3.
Have a look at
Migrating Facebook API for URL share count from v1.0 to v2.0+
So, apparantly the api.facebook.com server is regarded as v2.0, which is no longer available as of August 7th, 2016. All methods on api.facebook.com now return the REST API is deprecated for versions v2.1 and higher (12) error message.
I need to create an event on Facebook directly from my website.
I downloaded facebook SDK v4, I created the connection to my facebook application, now how can I create the event?
I tried several guides but refer to the older versions of the SDK.
now in Graph API -> reference -> event is written:
Publishing
You can not create events via the Graph API.
Can you help me?
The message should be clear enough, it is not possible to create events with the Graph API: https://developers.facebook.com/docs/graph-api/reference/v2.3/event#publish
This change happened with v2.0 of the API: https://developers.facebook.com/docs/apps/changelog#v2_0_permissions
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
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).