“请求”对话框中的“过滤好友”列表去了哪里?

发布于 2024-12-28 14:33:48 字数 244 浏览 4 评论 0 原文

因此,旧的请求对话框有一个“过滤好友”下拉菜单,允许用户从自己的自定义好友列表中进行选择。

但新的 Requests 2.0 只允许我们选择已安装或已卸载的用户,或者创建我们自己的一组过滤器。有没有办法启用旧的过滤器?因为我知道的唯一选择是请求用户授予我们的应用程序 read_friendslists 权限,然后查询这些列表。

对话框截图

So the old requests dialog had a dropdown for "Filter Friends" which allowed a user to select from their own custom friends lists.

But the new Requests 2.0 only allows us to select either Installed or Uninstalled users or create our own set of filters. Is there a way to enable the old filters? Because the only alternative I know is requesting the user to give our app read_friendslists permission and then querying for those lists.

Dialog screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

命硬 2025-01-04 14:33:48

请求对话框能够允许创建者传入您想要显示的过滤器列表。 (请参阅https://developers.facebook.com/docs/reference/dialogs/requests/ )您需要知道他们的过滤器列表是什么才能做到这一点。

请查看 http://developers.facebook.com/tools/console/。通过阅读他们的各种示例,我发现了一些很好的信息。主要文档页面上未披露的有价值的信息。这是我遇到对话框的过滤器选择的地方。

此外,应用程序可以建议自定义过滤器:
具有 name 键和 user_ids 键的字典,分别
其值是字符串和用户 ID 列表。名字就是名字
将在选择器中显示的自定义过滤器。 user_ids 是
要包含的好友列表,按照出现的顺序排列。

示例#1

[{name: '邻居', user_ids: [1, 2, 3]}, {name: '其他集合',
user_ids: [4,5,6]}]

The requests dialog has the ability to allow the creator to pass in the filter lists you want to show. (See https://developers.facebook.com/docs/reference/dialogs/requests/) You will need to know what their filter lists are to be able to do so.

Check out http://developers.facebook.com/tools/console/. I've found some good information by reading thru their various examples. Valuable information that is not disclosed on the main documentation pages. This is where I came across the filter selection for the dialog.

Additionally, an application can suggest custom filters as
dictionaries with a name key and a user_ids key, which respectively
have values that are a string and a list of user ids. name is the name
of the custom filter that will show in the selector. user_ids is the
list of friends to include, in the order they are to appear.

Example #1

[{name: 'Neighbors', user_ids: [1, 2, 3]}, {name: 'Other Set',
user_ids: [4,5,6]}]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文