2

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?

ArisRS
  • 1,362
  • 2
  • 19
  • 41
  • Have a look at this thread: http://stackoverflow.com/questions/14157784/can-we-invite-people-to-use-our-app-or-send-friend-request-from-the-app-via-face – NeverHopeless May 20 '13 at 18:32

1 Answers1

2

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

James Pearce
  • 2,332
  • 15
  • 14
  • 1
    Thanks I found solution. Just use deprecated Facebook object. I found it in the official Facebook guide. – ArisRS Sep 25 '12 at 17:00
  • Yeah, the 3.0 SDK is intended to be backwardly compatible (although there will sometimes be better ways to do things) – James Pearce Sep 25 '12 at 18:21