添加这个Facebook描述和标题

问题描述 投票:1回答:1

我在我的Facebook页面标签中添加了一个Addthis脚本;

<div class="addthis_toolbox addthis_default_style addthis_32x32_style"
addthis:title="MY TITLE"
    addthis:description="MY TITLE"> 
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=XXXX">    </script>

我还在Facebook标签页面中添加了正确的标题和描述,但是当我分享时,我没有得到正确的标题和描述。相反,我从我的Facebook主页获得默认值?

facebook addthis
1个回答
0
投票

正如保罗在this thread的第二个答案中指出的那样,facebook分享addThis链接与普通的addThis参数无关。你必须添加所需的facebook元标记:

<meta property="og:title" content="Your title here" />
        <meta property="og:description" content="your description here" />

到你的页面。您可以在facebook开放图表文档http://developers.facebook.com/docs/opengraph/中找到更多标签

© www.soinside.com 2019 - 2024. All rights reserved.