I’m using Graph API to create and get events from facebook.
Try in various ways but always get the same results. In the case of creating an event I get an ID, but the event never see in my account. When trying to get my events always get an empty array.
Try a query with fql.query but got the same result, then tested my app in the following query and got what he wanted.
https://developers.facebook.com/tools/explorer
Someone can help me. Thank you very much.
This is how I’m doing
Create Event
FB.api('/me/events', 'POST', {
name: "Evento desde mi app",
start_time: d1,
//end_time: d2,
location: "En Quilmes"
}, function (res) {
console.log(res);
});
Get Events
FB.api('me/events',function(data) {
console.log(data);
});
FB.api({
method: 'fql.query',
query: 'SELECT name FROM event WHERE eid IN ( SELECT eid from event_member WHERE uid = xxxxxxx) AND creator = xxxxxxx'
},function(response) {
console.log(response);
}
);
I could create an event, I still can not get my events.
Try adding the access token but I get an empty array.
This is the code to create an event