我在我的网站上添加了一个 Facebook 的“分享”按钮,但是当窗口打开时,绝对没有关于正在分享的页面的详细信息。
我在标题中包含了几个元标记,并将 XML 解析器添加到<HTML>
标记中 -
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en-GB" dir="ltr">
<head>
<meta property='og:image' content="http://test.dynedrewett.com/wp-content/uploads/2009/09/dyne-drewett-logo.gif"/>
<meta property='og:locale' content='en_UK'/>
<meta property='og:title' content='Consumer protection law - Dyne Drewett'/>
<meta property='og:description' content='The OFT conducted a review of 156 retailer websites, and found that many of them may not be complying fully with the Consumer Protection Regulations.'/>
<meta property='og:url' content='http://test.dynedrewett.com/consumer-protection-law-and-the-internet/'/>
<meta property='og:site_name' content='Dyne Drewett'/>
<meta property='og:type' content='article'/>
有谁知道为什么这不起作用?谢谢。