Search code examples
iosfacebookfacebook-graph-apifacebook-ios-sdkfbwebdialogs

How to pass multiple facebook Ids in presentFeedDialogModallyWithSession using FBWebDialogs?


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?


Solution

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