我剛剛更新了Facebook框架和邀請朋友的舊代碼沒有工作(現在沒有Facebook類對象)。我用下面的代碼:邀請朋友使用新的Facebook api
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"1", @"frictionless",
@"My message", @"message",
@"Notification", @"notification_text",nil];
[self.facebook dialog:@"apprequests" andParams:params andDelegate:self];
是否有可能在最新的框架上顯示相同的對話框?
看一看這個線程:http://stackoverflow.com/questions/14157784/can-we-invite-people-to-use-our-app-or -send-friend-request-from-the-app-via-face – NeverHopeless