2010-03-24 103 views
0

這是如何完成的?它甚至有可能嗎?通過iPhone應用程序和Facebook連接創建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]; 
+0

請提供更多信息,您在做什麼,包括代碼示例。然後,請提出具體問題,以便我們能夠幫助您。從你迄今爲止提供的答案是肯定的,這是可能的,但沒有你的更多信息,我不知道還有什麼要說的,以幫助你弄清楚你的代碼有什麼問題。 – 2010-03-24 15:32:00

+0

好的,我已經更新了這個問題。 – miorel 2010-03-24 15:41:46

回答

1

也許你需要問權限:

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