Javascript 谷歌+&引用;链接不是';“t有效”;添加到任何社交共享时出错
我使用该库为图像创建社交共享,它在Facebook上运行良好,但我对Google+有问题 这是我尝试的代码Javascript 谷歌+&引用;链接不是';“t有效”;添加到任何社交共享时出错,javascript,php,wordpress,social,Javascript,Php,Wordpress,Social,我使用该库为图像创建社交共享,它在Facebook上运行良好,但我对Google+有问题 这是我尝试的代码 <div> <script> var a2a_config = a2a_config || {}; a2a_config.overlays = a2a_config.overlays || []; a2a_config.overlays.push({ services: ['google_plus', 'facebook', 'telegram', '
<div>
<script>
var a2a_config = a2a_config || {};
a2a_config.overlays = a2a_config.overlays || [];
a2a_config.overlays.push({
services: ['google_plus', 'facebook', 'telegram', 'twitter'],
size: '50',
style: 'horizontal',
position: 'top center'
});
</script>
<script async src="https://static.addtoany.com/menu/page.js"></script>
<img src="https://static.addtoany.com/images/dracaena-cinnabari.jpg" data-a2a-overlay="true" height="auto" width="auto" alt="okay i change it">
var a2a_config=a2a_config |{};
a2a_config.overlays=a2a_config.overlays | | |[];
a2a_config.overlays.push({
服务:[“谷歌+”、“脸谱网”、“电报”、“推特”],
尺寸:'50',
风格:'水平',
位置:'上中锋'
});
我直接从“添加到任何库”中获得了这一信息,但我的问题是Google+
有什么建议吗?
非常感谢您的图像链接应该是在线的 我在我的本地项目中尝试过,虽然图像链接也是本地的。
Google+
不接受此本地链接并回复该链接无效
,但当我在线检查时,它工作正常。FYI,考虑到您可能不需要支持它。