Reputation: 700
How to pass multiple facebook Ids in presentFeedDialogModallyWithSession
using FBWebDialogs
?
NSMutableDictionary *params1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:
FACEBOOK_APP_ID, @"app_id",
@"http://www.google.com", @"link",
@"TestApp", @"name",
@"I'm playing Guess This for iOS. Join my leaderboard!", @"message",
@"Guess This is a social puzzle game, just match the pictures to a
word or
phrase.", @"caption",
facebookID,@"to",nil];
[FBWebDialogs presentFeedDialogModallyWithSession:session//[FBSession activeSession]
parameters:params1
handler:
^(FBWebDialogResult result, NSURL *resultURL, NSError *error){
}];
Then how to pass multiple facebook Id's in facebookId String?
Upvotes: 1
Views: 699
Reputation: 20753
You cannot add more than 1 id
while using the Feed Dialog
or Send Dialog
Upvotes: 1
Reputation: 23634
You can do this by passing them in as a single string separated by commas.
If you have an array of id strings, you can do it like this:
[idArray componentsJoinedByString:@","]
EDIT
According to the docs here, it does appear that for feed dialogs you can only have one user in to
. What I said above does work for some dialog types though.
Upvotes: 0