Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top