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
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).
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.
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).
Is it possible to create a Facebook Life Event via Open Graph API? Is it?
No, it's not possible. If it's not in roadmap and it's not in the documentation (documentation should reflect the latest changes to the API now, it's dynamically updated), then it's not available.
Is there any way to send facebook milestone with picture using API ? I have checked the following documentation and found nothing.
https://developers.facebook.com/docs/reference/api/page/#milestones
No, the API suuports only the parameters listed on that document, you can't upload milestones with images attached via the API