I couldn't find anything in the FB documentation, but basically what I'm looking for is the ability to add multiple FacebookIds to Params for FBWebDialogs. Here is an example of what I tried, but of course this is wrong:
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
facebookID1, @"to",
facebookID2, @"to",
facebookID3, @"to",
nil];
FBFrictionlessRecipientCache *friendCache = [[FBFrictionlessRecipientCache alloc] init];
[friendCache prefetchAndCacheForSession:nil];
[FBWebDialogs presentRequestsDialogModallyWithSession:nil
message:[NSString stringWithFormat:@"هل سمعت باليومي؟ برنامج iPhone إخباري روعا"]
title:nil
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
NSLog(@"Error sending request.");
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
NSLog(@"User canceled request.");
} else {
NSLog(@"Request Sent. %@", error);
}
}}
friendCache:friendCache];
Morad source
share