简体   繁体   中英

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

Maybe you need to ask about permissions:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM