我怎样才能在谷歌和像脸书一样分享可爱的标题和描述


How can i share cusome title and description in google plus like facebook?

我有很多产品,想在Google plus中分享每个具有不同标题和描述的产品,而不是页面元标记。我该怎么做?

Google+

将识别:

<meta itemprop="name" content="The page Title for sharing">
<meta itemprop="description" content="The description less than 200 characters">
<meta itemprop="image" content="http://www.yoursite.com/image-200x200.jpg">

脸书

打开图形标签(其他社交网络也阅读):

<meta property="og:image" content="http://www.yoursite.com/the-page-thumb-200x200.jpg" />
<meta property="og:title" content="The page Title for sharing" />
<meta property="og:type" content="website" /> (or "article")
<meta property="og:url" content="http://www.yoursite.com/the-url-for-sharing" />
<meta property="og:description" content="The Description less than 200 characters" />
<meta property="og:site_name" content="Your Site name" />
<meta property="fb:app_id" content="your-facebook-app-id" />
<meta property="fb:admins" content="your-facebook-user-id" />

获取应用 ID

@ https://developers.facebook.com/

使用您的FB凭据登录,然后设置Facebook应用程序。

使用调试工具

@ https://developers.facebook.com/tools/debug

以查看如何查看您的数据。

推特标签

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="The page Title for sharing">
<meta name="twitter:description" content="The description less than 200 characters">
<meta name="twitter:creator" content="@author_handle">
<meta name="twitter:image" content="http://www.yoursite.com/image-200x200.jpg">

而不是网页元标记

你不能。Google+ 只会从该网页中获取有关该网页的数据。您不能使用 URI 参数或任何 JS API 覆盖它。