2014-10-16 104 views
0

我在我的网站上添加了Facebook“赞”和“分享”按钮。当我点击“分享”时,我会收到通常的弹出消息提示。然而,在预填充内容下方区域,它只是说Facebook分享按钮只显示www.example.com

www.example.com 

www.myurl.com 

我添加以下内容,它并没有帮助:

<meta property="og:type" content="website" /> 
<meta property="og:title" content="Hello" /> 
<meta property="og:site_title" content="website" /> 
<meta property="og:description" content="Sample text"/> 
<meta property="og:utl" content="www.mysite.com"/> 

我一直有和没有尝试过JS SDK。我也尝试了iFrame选项。

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.mysite.com&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=21&amp;appId=1111111111" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe> 

我在做什么错?为什么说明字段中的“example.com”?

+0

Facebook的调试工具(https://developers.facebook.com/tools/debug/)会为您分享的URL选择什么? – Igy 2014-10-16 23:23:24

+0

它显示了同样的事情。它还说'og:title \t www.example.com',这是不正确的。当我查看我的网站的来源时,它是'' – 2014-10-16 23:31:01

回答

0

它看起来像Facebook需要一段时间来索引更改。我不得不等待大约一个小时,但现在它工作。这三个元标签似乎控制着内容:

<meta property="og:title" content="Hello" /> 
<meta property="og:site_title" content="website" /> 
<meta property="og:description" content="Sample text"/>