0

我有一个带有“end_time” facebook 键集的事件。我知道要删除活动的结束时间。什么是正确的语法?我试过展示的样品;

NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:@"none", @"end_time", nil];
FBRequest *deleteEndDate = [FBRequest requestWithGraphPath:@"/<EVENT_ID>" parameters:params HTTPMethod:@"POST"];

NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:@"", @"end_time", nil];
FBRequest *deleteEndDate = [FBRequest requestWithGraphPath:@"/<EVENT_ID>" parameters:params HTTPMethod:@"POST"];


FBRequest *deleteEndDate = [FBRequest requestWithGraphPath:@"/<EVENT_ID>/end_time" parameters:Nil HTTPMethod:@"DELETE"];

NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:@"", @"end_time", nil];
FBRequest *deleteEndDate = [FBRequest requestWithGraphPath:@"/<EVENT_ID>" parameters:params HTTPMethod:@"DELETE"]; // Deletes the event !!

非常感激

4

2 回答 2

1

将其设置为 @"0" 会将其从 facebook 应用程序中的 facebook 事件显示中删除

于 2013-04-23T06:23:19.150 回答
0

尝试传入 [NSNull null] 或使用“/EVENT_ID”发出请求并为参数传递 nil。

于 2013-04-23T04:31:04.800 回答