我正在做一个项目,你可以选择一些 friend 与系统进行交互。当您选择了 friend 后,您就可以向他们的收件箱发送一条消息。如果邀请的用户与选择的用户不同,系统将无法运行。
如何使用 Send Dialog
阻止用户编辑他正在向其发送消息的用户?
最佳答案
如果您使用他们的用户 ID(数字)或用户名(字母数字)以某种方式获得好友列表,则可以预先选择多个好友。但是您不传递数组,而是传递以逗号分隔的用户 ID 列表,如下所示:
FB.ui({
method: 'send',
to: '123123123,234234234',
name: 'People Argue Just to Win',
link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
});
查看更多信息:Send Dialog
关于javascript - 将对话框发送给多个硬编码的 friend ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8260152/