我已经将sharethis整合到我的网站中.我想自定义标题,并且会通过Facebook和谷歌加号,但由于某种原因,Facebook和GOOGLEPLUS只挑选了该URL,并且不显示我在st_title和st_summary变量提供的标题和摘要进行共享摘要.
将此添加到头部.
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "1234"});</script>
Run Code Online (Sandbox Code Playgroud)
在我的HTML中我有这样的东西
<span class='st_facebook' st_url="http://www.cnn.com" st_title="CNN-Test Website" st_summary="Shared CNN news"></span>
<span class='st_googleplus' st_url="http://www.cnn.com" st_title="CNN-Test Website" st_summary="Shared CNN news"></span>
Run Code Online (Sandbox Code Playgroud)
另外,我不能使用opengraph(元og标签).我也尝试过javascript来设置标题和摘要,但结果仍然相同.