【问题标题】:Structured data is not taken into account for sharing via google+通过 google+ 共享时不考虑结构化数据
【发布时间】:2012-12-22 21:26:21
【问题描述】:

我看到 google 看到了正确结构化的数据,但该数据未预先填充在共享对话框中。 来自谷歌开发工具的数据: rdfa节点 属性:

image:  https://s3.amazonaws.com/<bucket>/images/image_200_200.JPG
title:  Sandal
url:    https://site.amazonaws.com/p/view/27
description:    description
type:   article

我的元标签:

<meta property="og:image" content="https://s3.amazonaws.com/<bucket>/images/image_200_200.JPG">
<meta property="og:title" content="Sandal">
<meta property="og:url" content="https://site.amazonaws.com/p/view/27">
<meta property="og:description" content="description">
<meta property="og:type" content="article">

调用对话框的代码:

<a class="gplus in-popup" sm_type="gplus" href="https://plus.google.com/share?url=https://site.amazonaws.com/p/view/27"></a>

图片为 200*200 像素。我试过 900*900 和 120*120 - 一样。 一切看起来都不错,但我仍然只能在共享对话框中看到 url。 是否有可能是因为图像来自另一个主机? 也许还有其他事情?

【问题讨论】:

    标签: share google-plus


    【解决方案1】:

    您是否尝试过使用 sn-p 微数据?使用the snippet tool on the Google+ developers page 生成它。

    以下示例说明了如何输入微数据:

    <!-- Update your html tag to include the itemscope and itemtype attributes. -->
    <html itemscope itemtype="http://schema.org/Article">
    
    <!-- Add the following three tags inside head. -->
    <meta itemprop="name" content="Sandal">
    <meta itemprop="description" content="description">
    <meta itemprop="image" content="https://s3.amazonaws.com/&amp;lt;bucket&amp;gt;/images/image_200_200.JPG">
    

    【讨论】:

      猜你喜欢
      • 2011-02-18
      • 1970-01-01
      • 1970-01-01
      • 2019-07-26
      • 1970-01-01
      • 2019-11-17
      • 1970-01-01
      • 2021-09-25
      • 1970-01-01
      相关资源
      最近更新 更多