1
我试图通过Facebook发送Facebook的私人邮件在我的Facebook应用程序发送对话框中,我有一个问题,同时设置就可以了,每次用户点击,我和Facebook上的自定义图像发送对话框?
<a href="#" onclick="send_message('<?=$transaction->user_id?>', '<?=$transaction->image_name?>')">send msg</a>
和发送的参数自定义图像在功能方面,
FB.init({
appId: '<?=$this->facebook->getAppID()?>',
xfbml: true,
cookie: true
});
function send_message(user_id, image_name) {
FB.ui({
to: user_id,
method: 'send',
name: 'The Image',
description: 'Description here',
link: 'https://www.something.com/',
picture: '<?=baseurl()?>imagepath/'+image_name
});
}
它的工作原理没有图片参数正常,但所有的时间,它使用默认图像,Facebook的自动从我的链接挑选。
请大家不胜感激!
完美的作品,非常感谢 – 2013-04-25 12:04:36