0

我想通过我的 asp.net 网站在 google plus 中分享内容。我有一页名为 GooglePlusShare.aspx。Google Plus 采用它在 og:image 和 og:description 元标记中找到的任何内容。我想根据在查询字符串中传递的用户 ID 动态共享内容。og:image 和 og:description 元标记内容正在页面中完美设置,但 google plus 没有呈现它。

下面我在该页面上指定了元标记,它们是在页面加载时动态设置的。

<meta id="metaDescription" content="I just entered to win a KitchenAid Kitchen Suite From h.h.gregg - enter now at hhgregg.com/kitchenaid and watch to get a great recipe idea!" property="og:description" name="description">
<meta id="ogImg" content="http://img.youtube.com/vi/http://www.youtube.com/watch?v=OT1LFzO8k20/0.jpg" property="og:image">

任何人都可以帮助我。

在此先感谢,
普里亚

4

1 回答 1

0

根据 Open Graph 介绍页面http://ogp.me/,每个对象都需要 4 个元标记:

  • og:title - 应该出现在图表中的对象的标题,例如“The Rock”。
  • og:type - 对象的类型,例如“video.movi​​e”。根据您指定的类型,可能还需要其他属性。
  • og:image - 应在图中表示您的对象的图像 URL。
  • og:url - 对象的规范 URL,将在图中用作其永久 ID,例如“ http://www.imdb.com/title/tt0117500/ ”。

也许您需要在您的页面被识别之前实现所有 4 个?

于 2013-04-20T13:34:44.460 回答