duanjian7343 2013-12-12 05:52
浏览 35

向多个Facebook用户发送消息

Is there a way to achieve this?

This code is use to send message but pop ups a box where you can type your message then send.

   FB.ui({
                      method: 'send',
                      to: '100007250800729',
                      link:'http://www.mysite.com',
                      redirect_url:location.href,
                      message: 'A request especially for one person.',
                      data: 'tracking information for the user'

                    });

is there a way I can send it immediately by executing the script without the pop up like this so i can send the message to multiple users

foreach(users as user) {
    method: 'send',
    to: user->id,
    link:'http://www.mysite.com',
    redirect_url:location.href,
    message: 'HEllo '.user->name.' A request especially for you.',
    data: 'tracking information for the user' 
} 
  • 写回答

1条回答 默认 最新

  • doucezhu3570 2013-12-13 06:09
    关注

    There is no way to send a message without a popup. One more thing, you can't write a predefined message. Example :-

    FB.ui({ method: 'send', to: 100007250800729 link:'http://www.mysite.com', redirect_url:location.href });

    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看