小编ZKK*_*ZKK的帖子

ShareThis的自定义摘要,网址和标题

我已经将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来设置标题和摘要,但结果仍然相同.

facebook sharethis google-plus

8
推荐指数
1
解决办法
8196
查看次数

标签 统计

facebook ×1

google-plus ×1

sharethis ×1