我正在尝试通过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!");
}
});
答案 0 :(得分:0)
好的我已经解决了这个问题..这些是创建事件的参数..
name: "Test event"
description: "The details"
location: "London"
start_time: "2012-10-05"
end_time: ""
privacy_type: "SECRET"