Facebook向多个朋友发送对话 [英] Facebook 'send' dialog to multiple friends

查看:114
本文介绍了Facebook向多个朋友发送对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个想法是,用户可以从几个朋友那里请求关于他们所做的反馈。



我有一个很棒的朋友选择器。 p>

从这里我得到用户标识。然后我调用发送对话框,而不是有多个收件人,只有一个。有没有人知道为什么?

  FB.ui({
method:'send',
name: 'test',
to:formattedContacts,
link:'http://google.com'
});

如果我记录格式的联系我得到以下内容。 (id被删除)

  [11111,222222] 
pre>

发送对话框看起来很好,但只有第一个用户显示为收件人。



有谁知道打开与多个收件人的对话框

解决方案

如果您使用FB js-sdk,您可以指定多个收件人:

  FB.ui({
method:'send',
to:[12345,99999, 54321],
链接:http://google.com/
},function(param){
console.log(param);
});

但是,使用url弹出发送对话框(而不是使用FB.ui())只接受一个UID。


The idea is that the user can request feedback on what they have made from a couple of friends.

I have a friend selector which is working great.

From here I get the user id's. I then call the send dialog and instead there being multiple recipients there is only one. Does anyone know why?

FB.ui({
    method: 'send',
    name: 'Test',
    to: formattedContacts,
    link: 'http://google.com'
});

If I log the formattedContacts I get the following. (id's removed)

["11111", "222222"]

The send dialog appears fine but only the first users appears as a recipent.

Does anyone know how to open the dialog with multiple recipients?

解决方案

If you are using the FB js-sdk you can specify multiple recipients like so:

FB.ui({
      method : 'send',
      to : [12345, 99999, 54321],
      link : "http://google.com/"
    }, function(param) {
      console.log(param);
});

But yes, popping the Send Dialog using a url (instead of using FB.ui()) will accept one UID only.

这篇关于Facebook向多个朋友发送对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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