Am getting #100 Invalid parameter facebook error when using Titanium Appcelerator

2k Views Asked by At

Am trying to create an event in Facebook user and am using this code

var startDate = new Date(2013, 9, 5, 17, 0);
var endDate = new Date(2013, 9, 6, 17, 0);
var title = "Name";
var description = "My description.";
var data = {
    start_time : JSON.stringify(startDate),
    end_time : JSON.stringify(endDate),
    name : title,
    summary : description
};
//alert(data);
fb.requestWithGraphPath("me/events", data, "POST", function(e){
    if(e.success){
        alert(e.success);
    }else if(e.error){
        alert(e.error);
    }else{
        alert("Unknown Response");
    }
});

And getting a response like this. Is facebook changed any parameter intake or any error in my code?

0

There are 0 best solutions below