miorel
miorel

Reputation: 1833

Facebook event creation through iPhone app and Facebook Connect

How is this done? Is it even possible?

All the function calls seem correct, but the result is always false:

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];

Upvotes: 0

Views: 10387

Answers (1)

Dmitry
Dmitry

Reputation: 1041

Maybe you need to ask about permissions:

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

Upvotes: 1

Related Questions