我有一个网站,我在javascript sdk
添加了类似按钮。
这是代码
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
这是html代码
<div class="fb-like" data-href="WEBSITE URL" data-send="true" data-width="450"data-show-faces="false" data-action="like"> </div>
我还在头部添加了og: meta
<meta property="og:description" content=" the description of my website" />
<meta property="og:title" content="title" />
<meta property="og:url" content="url"/>
<meta property="og:image" content="pic" />
<meta property="og:type" content="website"/>
<meta property="fb:admins" content="facebook id"/>
问题在于:
当我点击我网站上的“赞”按钮时,我可以看到所有信息(姓名,图片,说明),但是当我转到脸谱资料时,说明会被替换为:
Link
Link
Link
Link
我无法理解问题所在。有人可以帮助我吗?
答案 0 :(得分:-1)
我遇到了同样的问题!
我有评论插件和喜欢框。
在类似框中,如果用户没有在用户活动供稿上写任何评论Fb。但是如果用户写了一些内容,它会在时间轴中添加4行“喜欢”:
LinkLinkLinkLink但是在鼠标悬停时,它会显示一个带有正确预览的弹出窗口。
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it-it" lang="it-it">
<meta property="og:title" content="Il menù dei cuscini"/>
<meta property="og:url" content="http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini"/>
<meta property="og:description" content="Dopo i vini e gli oli, negli alberghi arriva la carta dei cuscini Si diffonde negli alberghi di qualità il “menù dei cuscini”, una lista dove..."/>
<meta property="og:type" content="article" />
<meta property="og:image" content="http://www.cibbuzz.com/images/loghi/logo-cibbuzz-portfolio.jpg" />
<meta property="og:site_name" content="Cibbuzz" />
<meta property="fb:app_id" content="130008293680636" />
<meta property="fb:admins" content="1051936195" />
<div id="fb-root"></div>
<div class="fb-like" data-send="false" data-width="100" data-layout="button_count" data-show-faces="true" data-href="http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini" data-force_wall="true"></div>
<script type="text/javascript">
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1&appId=130008293680636";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
这来自Lint工具:
Scrape Information
Response Code: 200
Fetched URL: http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini
URL canonico: http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini
Proprietà Oggetto
fb:admins: Array of length 1
⍾ 1051936195
fb:app_id: 130008293680636
og:url: http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini
og:type: article
og:title: Il menù dei cuscini
og:image:
og:description: Dopo i vini e gli oli, negli alberghi arriva la carta dei cuscini Si diffonde negli alberghi di qualità il “menù dei cuscini”, una lista dove...
og:site_name: Cibbuzz
og:updated_time: 1359667404