Pinterest 共享选项

Pinterest Sharing Option

所以我目前正在制作自定义社交媒体共享按钮,运行 Pinterest 有点问题。经过多个小时和大量 google 搜索,我想出了似乎是正确的方法,如下所示:

<li>
    <a target="_blank" href="http://pinterest.com/pin/create/bookmarklet/?url=http://www.islandcompany.com/<?= $product->url; ?>&is_video=false&description=<?= $product->meta_description; ?>">
        <img src="/media/island/catalog/social-media/pinterest-2.jpg" />
    </a>
</li>

当我点击我的自定义按钮时,它会将我带到 Pinterest 共享屏幕并显示产品的描述和名称。但是我从来没有得到 return 的图像。我已经尝试了“&media=”和“&image_url=”这两个选项,但都没有 returned 图像。我正在使用 php 来抓取描述和图像,我知道它们正在工作,因为正在提取描述。但是即使我包含从 google 图像中提取的基本图像,图像似乎也无法正常工作。有人对这个问题有任何见解吗?

我知道有很多问题被问到,就像这个问题一样,但我真的没有从这些问题中找到有效的解决方案,因为我已经尝试了其中找到的所有解决方案。

href="http://pinterest.com/pin/create/bookmarklet/?url=http://www.islandcompany.com/<?= $product->url; ?>&is_video=false&description=<?= $product->meta_description; ?>&media=http://www.islandcompany.com/<?= $product->getMainImage('large')->url; ?>

我的图像 URL 路径缺少一些链接问题。现在都解决了。这段代码,为您自己的图像路径和元描述稍加改动,就可以工作了!