Facebook 社交插件 Like Box 不会以随机模式显示帖子中的图像。图像已正确加载,但未显示在流中。当我从包含 IMG
元素的 DIV CSS
类中删除类 "photoWrap"
时,图像显示正确。 DIV
元素的完整类名称为 "_46-h photoWrap"
最佳答案
这是从 facebook 生成的代码:
<div class="_46-h photoWrap" style="width:398px;height:204px;"><img class="_46-i img" src="https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-prn2/p206x206/8459_10151508582178553_1981136185_n.png" style="left:-1px; top:0px;" alt="Platform Updates: We are launching two Open Graph tags to help people follow their favorite media publishers and journalists. New requirements to make it easier for us to review your app and Open Graph submissions. Learn more http://bit.ly/16Nizub" width="401" height="206"></div>
您从以下位置生成代码:https://developers.facebook.com/docs/reference/plugins/like-box/
图像曾经出现在点赞框中,现在不再显示。
不幸的是,这看起来完全是 Facebook 的决定,他们需要更新他们的 like_box.php 文件来编辑 photowrap 类,以从类的高度和宽度中删除“!important”。
希望有人能读到这篇文章并解决这个问题。
关于Facebook Like Box 不随机显示图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17559637/