我正在尝试创建一个事件但出现错误。我正在编写以下代码以使用 facebook sdk 3.1 创建事件
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"My Test Event",@"name",
@"Bangalore",@"location",
@"1297641600",@"start_time",
@"1297468800",@"end_time", nil];
NSString * pRequest = [NSString stringWithFormat:@"me/events"];
[FBRequestConnection startWithGraphPath:pRequest parameters:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error)
{
NSLog(@"Facebook Post Success..");
} else
{
NSLog(@"Facebook Post Failed..");
NSLog(@"ERROR : %@", error.localizedDescription);
}
}];
错误 :
Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0xa180200 {com.facebook.sdk:ParsedJSONResponseKey={
body = {
error = {
code = 100;
message = "(#100) Invalid parameter";
type = OAuthException;
};
};
code = 400;
}, com.facebook.sdk:HTTPStatusCode=400}
任何人都可以帮助......
提前致谢