Google+分享没有捡到元数据,但Facebook和LinkedIn确实如此。为什么?

时间:2015-06-26 18:12:04

标签: google-plus meta microdata

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

再次,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>

1 个答案:

答案 0 :(得分:1)

Google结构化数据测试人员here,应该会显示结构化数据形式的完整细分,而不仅仅是您当前看到的搜索引擎部分。 Facebook正在使用Open Graph的og:meta标签,但结构化数据就是问题所在。您必须先将项目范围项目类型 放在之前才能使用任何itemprop。

最佳做法是避免将元标记用于已存在于页面中的信息 - 理想情况下,仅使用它们来澄清日期格式等混乱信息。在陈述你将使用的东西(一个人)之后,你用它来包装它而不管它出现什么。因此,从中移除微数据并将其移至

<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”语句,它们位于bodytype和itemcope部分之上,它们位于body标签中。所以描述itemprop将不起作用,名称和图像都将使用页面下方的结构化数据而不是元标记。您需要删除3'itemprop'元标记。

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