我有一个设置了“ 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 !!


非常感激

最佳答案

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

关于ios - NULLIFY的正确方法是什么,即在FaceBook API中删除 key ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16160844/

10-09 07:01