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