English 中文(简体)
我可以迫使谷歌+纽顿使用开放的图表URL?
原标题:can I force Google+ button to use open graph URL?

能否让谷歌加使用开放的图象? 我已经在Facebook上使用地理信息系统,因此在法典中也有:

<meta property="og:url" content="http://www.sandrophoto.com/category/famous-photographers/"/>
<meta property="og:type" content="website" />

但谷歌不想尊重它! 任何想法?

最佳回答

Google Plus 1 doesn t currently support og tags. The URL that is +1 d is determined by one of three things, in this order:

  1. The button s href attribute This attribute explicitly defines the +1 target URL.
  2. The page s <link rel="canonical" ... /> tag If the +1 button s href attribute is not provided, Google will use the page s canonical URL. For more information on defining the canonical URL for a page, see http://www.google.com/support/webmasters/bin/answer.py?answer=139066.
  3. The URL provided by document.location.href (not recommended) If neither of these pieces of data are present, Google will use the URL of the page as found in the DOM. Because this URL might contain session IDs, anchors, or other parameters that are not actually part of the canonical URL, we highly recommend either setting the href attribute for the +1 button or adding a <link rel="canonical" ...> tag to your page.
问题回答

就在这样的情况下,从排雷中心接受的答案来看,它并不认为谷歌不支持开图。 它们不使用OGSur property,但如Sandro s评论所述,它们将使用其他财产(具体如下:,imagedescription。 但是他们更喜欢Schema.org microdata over Opengraph:

Populating the +Snippet

在加1页后,用户可以选择通过显示的股票泡沫向谷歌+共用网页。 这一份额泡沫(加上由此而产生的谷歌+活动员额)包括一个预览或+Snippet,其中包含页标题、页数的简要描述和星形图像。 这些数据以四种方式之一从目标内容中提取,按顺序排列:

  1. Schema.org microdata (recommended)
  2. Open Graph protocol
  3. Meta "title" and "description" tags
  4. Best guess from page content (not recommended)





相关问题
Posting to an Open Graph page

I ve got a open graph page with a like button, activity feed, etc. I want to be able to post programmatically. The open graph docs says it s possible via the old stream.publish api. I ve got a meta ...

Facebook like button and comments, how to get users?

I have read a lot of stuff about the Open Graph Protocol and Social plugins. But I d like to know if there is a way to programmatically retreive the full list of facebook users who "likes" or "...

Open Graph API - Github PHP Class

I have downloaded the PHP class from github which is the wrapper for their Open Graph API. I can log in and list freinds and images etc. But what I am really struggling with is allowing for extended ...

Facebook like button issue

We re having some trouble getting our like button to work. It seemed to work last week but suddenly it s stopped working. Basically when clicking "Like", we get an error saying: You failed to ...

热门标签