开发者

Facebook event creation through iPhone app and Facebook Connect

开发者 https://www.devze.com 2022-12-23 20:11 出处:网络
How is this done? Is it even possible? All the function calls seem correct, but the result is always false:

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\开发者_如何学JAVA":\"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];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号