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