是否可以通过iOS SDK显示Facebook请求对话框中的所有朋友? [英] Is it possible to show all friends in a Facebook Request Dialog via iOS SDK?

查看:94
本文介绍了是否可以通过iOS SDK显示Facebook请求对话框中的所有朋友?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook iOS SDK v3.17。

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

我想允许用户邀请多个朋友到我的应用程序,而不使用Invitable Friends API (我没有Canvas应用程序)。想知道是否真的可以在多人选择器中查看所有用户的朋友。

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.

我的代码是...

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

我没有传入任何参数,而在请求对话框的文档,它指出参考参数 filter (我还没有设置)...

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)...


如果一个多人选择器被显示。如果留空,多人选择器将显示所有用户的Facebook好友。

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.

这不会发生。它总是只显示大约6个用户,默认为已经使用该应用的用户。如果我将过滤器设置为@app_non_users,并传递参数字典,则只会选择6个用户(似乎随机),没有使用该应用程序,而不是全部

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.

任何想法?

推荐答案

API中没有机制做你要求的用户可以随时使用搜索字段通过名称添加特定的朋友。一般来说,我们发现,有200多位朋友出现在列表中,您必须滚动并不是理想的用户体验。

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.

这篇关于是否可以通过iOS SDK显示Facebook请求对话框中的所有朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆