我正在尝试通过 Facebook API 创建一个事件;但是,我不断收到此错误:
#
100 无效参数
这是代码:
FB.api("/me/events", "post", {
name: "Test Event",
category: 1,
subcategory: 1,
host: "You",
description: "Details",
location: "London",
start_time: "2012-10-05 15:00",
end_time: "",
privacy: "SECRET"
}, function(response) {
if (!response || response.error) {
alert("Sorry this event could not be created");
console.log(response.error.message);
} else {
alert("Created!");
}
});