简体   繁体   中英

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?

使用Feed DialogSend Dialog您不能添加超过1个id

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM