0

I am trying to allow the users of my iOS app to share a link and message privately to the friends they selected on the previous screen.

Sending the link can be done using Facebook's SendMessge Dialog. However, I can't find a way to specify the receivers. Is it possible to programatically set the "to" field of this dialog ?

[FBDialogs presentMessageDialogWithLink:[NSURL URLWithString:@"https://developers.facebook.com/docs/ios/"] 
                                handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
                                  if(error) {
                                    // An error occurred, we need to handle the error
                                    // See: https://developers.facebook.com/docs/ios/errors
                                    NSLog([NSString stringWithFormat:@"Error messaging link: %@", error.description]);
                                  } else {
                                    // Success
                                    NSLog(@"result %@", results);
                                  }
                                }];

POSSIBLE SOLUTION

One possible solution would be to do away with the sdk altogether and use a custom url to bring up the Facebook messenger.

Community
  • 1
  • 1
user1349663
  • 555
  • 1
  • 6
  • 21
  • No it is not possible. Let the user select in the SendMessage Dialog instead. – WizKid Jun 02 '14 at 07:32
  • Right, you can't do that. https://developers.facebook.com/docs/ios/share#message-dialog simply scroll down to "Sending a message" for the closest thing. one point, you could sen them an email using the FB email. – Fattie Jun 02 '14 at 07:33
  • Hm.. yeah, I thought so, but asked anyway just in case I had missed something. Thanks @WizKid and Jow Blow – user1349663 Jun 02 '14 at 07:35

0 Answers0