2013-12-12 127 views
1

有没有办法做到这一点?给多个Facebook用户发消息

此代码用于发送消息,但弹出窗口的框中,您可以键入消息 然后发送。

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' 

        }); 

是有办法,我可以通过执行脚本,而不将弹出这样立即发送这样我就可以将消息发送到多个用户

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' 
} 

回答

0

没有办法发送消息没有弹出。还有一件事,你不能写预定义的消息。 实施例: -

FB.ui({ 方法: '发送', 到:100007250800729 链接: 'http://www.mysite.com', REDIRECT_URL:location.href });

相关问题