【问题标题】:Facebook share not showing the thumnail imageFacebook 分享未显示缩略图
【发布时间】:2011-12-26 18:47:29
【问题描述】:

以下是我用来在 Facebook 上分享帖子的代码。一切正常,但有时在某些帖子上没有显示缩略图。

<?php
$title=urlencode('Facebook Share Platform');
$image=urlencode('imagepath');
$summary=urlencode('Check This Out');
$url=urlencode('http://apps.facebook.com/yourapplication');
?>

window.open('http://www.facebook.com/sharer.php?s=100&p[title]=<?php echo $title; ?>&p[summary]=<?php echo $summary; ?>&p[url]=<?php echo $url; ?>&p[images][0]=<?php echo $imagepath; ?>', 'sharer', 'toolbar=0,status=0,width=626,height=436');

我已经检查了 URL 和所有我可以但无法找出问题的东西。

【问题讨论】:

    标签: facebook image thumbnails facebook-sharer


    【解决方案1】:

    您的图片是否至少为 50x50 且纵横比为 3:1 或更小? 你没有真正提供足够的信息来解决你的问题,所以我只是根据我看到的最常见的问题来猜测

    {编辑:} here 记录了 3:1 图像比例要求,这似乎是 OP 的问题

    【讨论】:

    • 有件事我忘了说。当共享对话框出现时,我尝试读取该对话框的 HTML,发现 HTML 中有我的图像,但显示该图像的 div 被隐藏了.. 你能帮忙
    • 回答你的问题,我的图片大于 50x50
    • 宽高比是多少? (高/宽和宽/高需小于3.0)
    • @zzzzBov 几个地方,其中一个是developers.facebook.com/docs/reference/plugins/like - og:image - The URL to an image that represents the entity. Images must be at least 50 pixels by 50 pixels. Square images work best, but you are allowed to use images up to three times as wide as they are tall.
    猜你喜欢
    • 2011-03-31
    • 1970-01-01
    • 1970-01-01
    • 2013-07-11
    • 1970-01-01
    • 2014-09-08
    • 1970-01-01
    • 1970-01-01
    • 2011-02-26
    相关资源
    最近更新 更多