I've just updated Facebook framework and old code for invite friends does't work(Now there is no Facebook class object.). I used the following code:

     NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
     @"1", @"frictionless",
     @"My message", @"message",
     @"Notification", @"notification_text",nil];
     [self.facebook dialog:@"apprequests" andParams:params andDelegate:self];

Is it possible to show the same dialog on the latest framework?

有帮助吗?

解决方案

Yes it is. The sample iOS game, Friend Smash (https://github.com/fbsamples/ios-friend-smash), uses this technique. The equivalent code is here:

https://github.com/fbsamples/ios-friend-smash/blob/master/friendsmash/friendSmasher/Game/GameController_FacebookIntegration.cpp#L365

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top