Я пытаюсь создать событие через API Facebook; однако я продолжаю получать эту ошибку:

# 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
Danny 11 Сен 2012 в 18:48

1 ответ

Лучший ответ

Хорошо, я решил проблему .. Это параметры для создания событий ..

name: "Test event"
description: "The details"
location: "London"
start_time: "2012-10-05"
end_time: ""
privacy_type: "SECRET"
0
Danny 11 Сен 2012 в 19:06