0

我正在尝试通过 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!");
       }
   });
4

1 回答 1

0

好的,我已经解决了这个问题。这些是创建事件的参数。

name: "Test event"
description: "The details"
location: "London"
start_time: "2012-10-05"
end_time: ""
privacy_type: "SECRET"
于 2012-09-11T15:06:09.203 回答