【问题标题】:Custom image in facebook send dialog?Facebook发送对话框中的自定义图像?
【发布时间】:2013-04-25 05:32:44
【问题描述】:

我正在尝试通过我的 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自动从我的链接中选择的默认图像。

您的帮助将不胜感激!

【问题讨论】:

    标签: facebook dialog sendmessage facebook-ui


    【解决方案1】:

    在图片链接中使用 HTTPS 协议(如果这样做),可能会导致问题。看看Images not working in FB.ui

    【讨论】:

      猜你喜欢
      • 2013-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多