Addthis Facebook description and title

余生长醉 提交于 2019-12-24 08:48:20

问题


I've added a Addthis script to my Facebook page tab;

<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>

I've also added the correct Title and description to the Page in my Facebook Tab but when I share, I don't get the correct Title and Description. Instead I get the default from my Facebook homepage?


回答1:


As Paul points out in the second answer of this thread, facebook share links of addThis don´t work with the normal addThis parameters. You have to add the required facebook meta tags:

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

to your page. You can find further tags at the facebook open graph documentation http://developers.facebook.com/docs/opengraph/



来源:https://stackoverflow.com/questions/11042030/addthis-facebook-description-and-title

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!