【问题标题】:How to format the template to share images on facebook wall如何格式化模板以在 Facebook 墙上共享图像
【发布时间】:2014-12-04 07:10:07
【问题描述】:

我正在尝试在 Facebook 墙上分享我网站上的一些内容,我的脚本看起来像这样。

<input data-mini="true" name="Compartir" type="button" id="Compartir" 
    value="1" onClick="connect('http://www.yoz.com','Adds being posted','This add contans something ')" >   

<script>
function connect($link, heading, description) {

    FB.ui({
        method: 'feed',
        name: heading,
        link: $link,
        caption: 'hey I just posted an add',
        description: description,
        message: 'Hello'
    });
}
</script>

我的问题是如何将图像添加到此共享功能。这样用户就可以在添加中看到已发布在 facebook 墙上的图像以及其他描述

提前致谢

【问题讨论】:

    标签: javascript facebook facebook-graph-api


    【解决方案1】:

    只需在帖子中添加图片属性即可 FB.ui({ method: 'feed', name: heading, link: $link, caption: '嘿我刚刚发布了一个 add', description: description, message: '你好', picture:"图片链接" } );

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-27
      • 1970-01-01
      • 2016-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-02
      相关资源
      最近更新 更多