通过iPhone应用程序和Facebook Connect创建Facebook活动

时间:2010-03-24 15:28:02

标签: iphone facebook

这是怎么做到的?它甚至可能吗?

所有函数调用看起来都是正确的,但结果总是错误的:

NSString *event = @"{\"name\":\"A party\",\"start_time\":\"1215929160\",\"end_time\":\"1215929160\",\"location\":\"Somewhere\"}";
NSDictionary *params = [NSDictionary dictionaryWithObject:event forKey:@"event_info"];
[[FBRequest requestWithDelegate:self] call:@"facebook.events.create" params:params];

1 个答案:

答案 0 :(得分:1)

也许您需要询问权限:

  FBPermissionDialog* dialog = [[[FBPermissionDialog alloc] init] autorelease];
  dialog.delegate = self;
  dialog.permission = @"create_event";
  [dialog show];