2012-09-11 58 views
0

我试图通过Facebook API创建一个事件;不过,我不断收到此错误:Facebook Javascript SDK - 无效参数?

# 100 Invalid Parameter

这是代码:

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

好,我有固定的问题。这些是创建活动的参数..

name: "Test event" 
description: "The details" 
location: "London" 
start_time: "2012-10-05" 
end_time: "" 
privacy_type: "SECRET"