我在我的网站上添加了以下标准 Google Plus One 代码。
<!-- Place this tag where you want the +1 button to render -->
<g:plusone annotation="inline"></g:plusone>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
我将代码添加到我的 phtml 代码的底部。它按预期工作。但是,当我在 Facebook 中提供我的页面链接时,它会在缩略图中显示以下代码!我尝试从我的站点中删除整个 Google Plus One 代码,但是当我尝试在 FB 中提供指向我的站点的链接时,此代码(顺便说一下,仅此代码)再次出现在缩略图中。那么有什么办法可以防止这段代码出现在 Facebook 缩略图上呢?