简体   繁体   English

iOS-向Facebook好友发送请求

[英]iOS - Send requests to Facebook friends

I have been trying to set up a system on my app, where users can send requests to their Facebook friends. 我一直在尝试在我的应用程序上建立一个系统,用户可以在其中向其Facebook朋友发送请求。 I followed the instructions on this page , and found that it presents a dialog where I can select friends and send invites. 我按照此页面上的说明进行操作,发现它显示了一个对话框,我可以在其中选择朋友并发送邀请。 So far so good. 到现在为止还挺好。 But what I would like is that this dialog comes with the friends pre-selected so the users don't have to select them one by one. 但是我想这个对话框带有预先选择的朋友,因此用户不必一一选择。 Is there a way to do this? 有没有办法做到这一点?

According to the documentation, 根据文档,

You can filter the suggested list down or target one user. 您可以向下过滤建议的列表或定位一个用户。 To filter down the list you can pass in a parameter, suggestions that contains a comma-separated list of friends to show in the selection. 要过滤列表,您可以传入一个参数,即包含以逗号分隔的朋友列表的建议 ,以显示在选择中。 To target one recipient, pass that user's ID in a to parameter. 要定位一个收件人,请在to参数中传递该用户的ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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