fen*_* ma 13 javascript arrays facebook
Facebook新的发送对话框允许人们将内容发送给特定的朋友.但API @ https://developers.facebook.com/docs/reference/dialogs/send/表示参数"TO"表示"用户ID或用户名".
我想知道有没有一种方法可以一次向多个朋友发送消息.我试图将'to'设置为javascript数组,但这不起作用.
我不确定你是怎么做的或者你定义为"作品",但是下面的作品是:
在这里转到javascript测试控制台:https://developers.facebook.com/tools/console/ 并输入以下内容,然后点击"运行",它将弹出一个预先填充两个名称的发送对话框.不幸的是,当你点击发送时,它会转到一个错误页面(仍然试图找出那个).但是,它确实用两个名称填充对话框:P
<script>
FB.ui(
{
method: 'send',
to: [5,6],
link: "https://developers.facebook.com",
picture: "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/174597_20531316728_2866555_q.jpg"
},
function(param){
// If they cancel params will show:
// {action:false, ...}
// and if they send the friend request it'll have:
// {action:true, ...}
// and if they closed the pop-up window then:
// param is undefined
}
);
</script>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18387 次 |
| 最近记录: |