Jon Stokes
Jon Stokes

Reputation: 41

Is it possible to show all friends in a Facebook Request Dialog via iOS SDK?

I'm using the Facebook iOS SDK v3.17.

I want to allow the user to invite multiple friends to my app, without using the Invitable Friends API (I don't have a Canvas app). Wondering if its actually possible to see ALL of a user's friends in the multi-friend selector.

My code is...

[FBWebDialogs presentRequestsDialogModallyWithSession:FBSession.activeSession
                                              message:@"Download dis app now, kiiiiiiiiiid!"
                                                title:@"Ahoy!"
                                           parameters:nil
                                              handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
                                              }];

I'm not passing in any parameters, and in the documentation for Request Dialogs, it states, in reference to the parameter filter (which I haven't set)...

This controls the set of friends someone sees if a multi-friend selector is shown. If left empty, the multi-friend selector will display all of the user's Facebook friends.

This does not happen. It always shows only about 6 users, and defaults to people who have already used the app. If I set filter to @"app_non_users", and pass the parameters dictionary, it only picks 6 users (seemingly at random) who have not used the app, not all of them.

Any ideas?

Upvotes: 3

Views: 601

Answers (1)

Ming Li
Ming Li

Reputation: 15662

There's no mechanism in the API to do what you're asking for. The user can always use the search field to add specific friends by name. In general, we've found that having 200+ friends show up in a list that you have to scroll through is not an ideal user experience.

Upvotes: 1

Related Questions