1

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?

Qantas 94 Heavy
  • 15,750
  • 31
  • 68
  • 83
user40910
  • 700
  • 1
  • 6
  • 17

2 Answers2

1

You cannot add more than 1 id while using the Feed Dialog or Send Dialog

Sahil Mittal
  • 20,697
  • 12
  • 65
  • 90
0

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.

Dima
  • 23,484
  • 6
  • 56
  • 83