-1

我正在使用这样的链接:https: //plus.google.com/share?url= www.myurl.com 从网站上分享 Google+ 上的文章。

这工作正常,但共享的预览图像不正确。我在 Google 文档中读到您需要指定这样的图像:

<img itemprop="image" src="thumbnail.jpg" />

问题是,我想使用的图像没有显示在我想分享的页面上。我有我想使用的特定缩略图(比文章中显示的图像更小)。

有没有办法为 Google 指定图像,例如 Facebook 的 og:image 标签,而不必使用标签?

4

2 回答 2

2

有没有办法为 Google 指定图像,例如 Facebook 的 og:image 标签,而不必使用标签?

https://developers.google.com/+/plugins/snippet/

2. Open Graph protocol

如果页面包含标题、图像和描述的 Open Graph 属性,它们将用于 +Snippet。

于 2012-11-19T14:18:22.620 回答
1

此外,定义页面预览图像的 schema.org 标记不需要显示在页面上,您可以在 HEAD 中将其定义为元数据:

<meta itemprop="image" content="thumbnail.jpg" />
于 2013-10-08T17:42:45.847 回答