Facebook喜欢,发送,分享缩略图和对象

时间:2013-08-14 20:45:55

标签: image facebook object share facebook-like

经过多次尝试,我无法获得正确的图像缩略图或Facebook Like,Send and Share Divs中的完整对象。

这些是元标记。

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#">
<meta property="id" content="619746228056373" /> 
<meta property="fb:app_id" content="185401314974757" /> 
<meta property="og:type"   content="website" /> 
<meta property="og:url"    content="http://www.thecampusbook.net" /> 
<meta property="og:title"  content="CampusBook - News, Messages, Alerts, Timeline, Academic Info for Students, Teachers & Parents through Web, SMS & Email channels" /> 
<meta property="og:image"  content="http://www.thecampusbook.net/images/broadcast_book_75.jpeg" /> 

分享代码:

<a href="#" 
    onclick="
    window.open(                  'https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fthecampusbook.net', 
    'facebook-share-dialog', 
    'width=626,height=436'); 
    return false;"
    style="text-decoration:none;">SHARE</a>

LIKE和SEND代码:

<div class=" fb-like" 
    data-href="http://www.thecampusbook.net/index.php" data-width="450" data-show-faces="true" data-send="true"  
    style=" clear: both;        float: left;        margin: 15px 10px 15px 0;  ">
</div>

如果有人可以提供帮助,我将感激不尽。

1 个答案:

答案 0 :(得分:0)

首先,http://www.thecampusbook.net/index.php不是有效的HTML文档。对于FB OG调试和刷新缓存,请查看Facebook debugger