【问题标题】:Google+ Share Not Picking up Meta-Data, but Facebook and LinkedIn do. Why?Google+ Share 不会收集元数据,但 Facebook 和 LinkedIn 会。为什么?
【发布时间】:2015-06-26 18:12:04
【问题描述】:

为了记录,我刚刚尝试了this.,尽管文档说架构微数据无论如何都不是必需的。我已经为微数据尝试了许多不同的位置和类型,但我仍然无法在 Google sn-p 中显示任何内容。

再一次,facebook 和linkedin 似乎在同一个页面上做他们的工作......

<!DOCTYPE html>
<html>
<head>
<title>Reviews for John W. Smith, Profession: DOCTOR OF CHIROPRACTIC</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


<meta itemprop="name" content="John W. Smith (Profession: DOCTOR OF CHIROPRACTIC)">
<meta itemprop="description" content="Rate and review Maine licensed professionals and discuss occupational licensing regulation in Maine. Rate - and debate regulations for - doctors, lawyers, massage therapists, funeral directors, land surveyors, social workers, and more.">
<meta itemprop="image" content="http://www.mainelicensereview.com/imgs/mlr3.png">


<meta name="description" content="Rate and review Maine's licensed professionals and discuss occupational licensing regulation in Maine. Rate - and debate regulations for - doctors, lawyers, massage therapists, funeral directors, land surveyors, social workers, and more.">
<meta name="keywords" content="Professional, Licensing, Reviews, Maine, Regulation, PFR, DOCTOR OF CHIROPRACTIC, CHIROPRACTIC"><meta property="og:site_name" content="Maine License Review: Rate Licensed Professionals and Discuss Professional Licensing Laws" />
<meta property="og:url" content="http://www.mainelicensereview.com/licensee.php?licpage=2805" />
<meta property="og:image" content="http://www.mainelicensereview.com/imgs/mlr3.jpg" />
<meta property="og:title" content="John W. Smith (Profession: DOCTOR OF CHIROPRACTIC)" />
<meta property="og:description" content="Milton Friedman said having a license is no assurance of quality. At Maine License Review, rate the quality of any licensed professional in Maine. Barbers, massage therapists, doctors, lawyers...Review professionals and the laws that govern their professions, costing you money and others their jobs." />
<meta property="fb:app_id" content="618089658327157" />
<meta property="og:type" content="profile" />
<meta property="og:locale" content="en_US" />


<!-- Google First Snip -->
<link rel="canonical" href="http//www.mainelicensereview.com/licensee.php?licpage=2805" />

然后我有:

<body itemscope itemtype="http://schema.org/Person">

后来:

<img itemprop="image" src="/imgs/mlr3.png" />

后来:

<h1 itemprop="name">John W. Smith</h1>

后来:

<h3 itemprop="description">DOCTOR OF CHIROPRACTIC</h3>

【问题讨论】:

  • 还是不知道是什么问题。

标签: google-plus meta microdata


【解决方案1】:

谷歌结构化数据测试员是here,应该显示结构化数据形式的完整细分,而不仅仅是您当前看到的搜索引擎部分。 Facebook 正在为 Open Graph 使用 og: 元标记,但这是结构化数据的问题。您必须将 itemscopeitemtype 放在 任何 itemprop 可以使用。

最佳做法是避免对页面中已经存在的信息使用元标记 - 理想情况下,仅使用它们来澄清令人困惑的信息,例如日期格式。在说明你将使用哪个事物(一个人)之后,你将它用 a 包裹起来,而不是它出现的任何地方。所以从 中删除微数据并将其移动到

<body itemscope itemtype="http://schema.org/Person">
<h1 itemprop="name">John W. Smith</h1>
<h2>Qualifications</h2>

<h3 itemprop="description">DOCTOR OF CHIROPRACTIC</h3>
<img src="photo.jpg" itemprop="image" alt="Photo of John W.Smith"/>
<span itemprop="jobTitle">Professor</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">
  20341 Whitworth Institute
  405 N. Whitworth
</span>
<span itemprop="addressLocality">Seattle</span>,
<span itemprop="addressRegion">WA</span>
<span itemprop="postalCode">98052</span>

schema.org/Person 页面包含几个示例。这个generator 可能会有所帮助。

为澄清和添加刷新信息而编辑: Meta 标签中有 3 个“itemprop”语句,它们位于 itemtype 和 itemcope 部分的上方,它们位于 body 标签中。所以描述 itemprop 将不起作用,名称和图像都将使用页面下方的结构化数据而不是元标记数据。您需要删除 3 个“itemprop”元标记。

在 g+ 中刷新 您可以通过在页面名称后添加一个虚假参数来让谷歌重新检查您的页面,以强制它接受更改,例如。 http://example.com/person.html?1(或者简单地使用站长工具强制它再次爬取页面并获取新值)。

【讨论】:

  • 我在任何 itemprop 之前已经有了 itemscope 和 itemtype。我看不到您的示例如何做任何事情,只是添加了更多我对在我的 sn-p 中没有兴趣的数据。
  • 我添加了解释的答案,并添加了有关刷新谷歌页面副本的信息。您可能想先尝试后者。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-10
  • 2021-09-17
  • 2019-09-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多