例如
使用Twitter,您可以:
http://twitter.com/home?status={url}
使用Facebook,您可以:
http://www.facebook.com/sharer.php?u={url}&t={title}
使用Digg,您可以:
http://digg.com/submit?phase=2&url={url}&title={title}
#1 楼
这是新功能,它是由Google发布的:使用+1按钮可以做更多的事情:从今天开始,我们使Google+用户可以轻松地与他们共享网页他们的圈子,直接通过+1按钮即可。只需照常+1一个
页面,然后寻找新的“在Google+上共享”选项即可。
那么您该怎么做?使用+代码段
当您通过+1按钮共享内容...时,我们会在共享框中自动包含链接,
图像和说明。我们称这些为“ +代码段”
真正的细节在这里,在Google网站站长中心博客上:充分利用Google +的改进。
现在,+ 1按钮使访问者可以共享指向您在Google+上的页面的链接。
包含每个+ Snippet属性的示例代码:
<body itemscope itemtype="http://schema.org/Article">
<h1 itemprop="name">This is the article name</h1>
<img itemprop="image" src="thumbnail.jpg" />
<p itemprop="description">This is the description of the article.</p>
</body>
本文建议使用+ snippets所谓的配置工具。有几个输入参数,但最简单的示例是
<!-- Update your html tag to include the itemscope and itemtype attributes -->
<html itemscope itemtype="http://schema.org/Article">
<!-- Add the following three tags inside head -->
<meta itemprop="name" content="Title Of Your +1 Content">
<meta itemprop="description" content="This would be a description of the content your users are +1ing">
<meta itemprop="image" content="images/cool-image.png">
评论
有趣,但不完全是我的想法。
–psp
11年8月25日在17:06
#2 楼
您可以根据文档通过以下URL共享某些内容:https://plus.google.com/share?url={url}
或
这是Google+,相当于您上面发布的Facebook和Twitter方法。不幸的是,这不会+1链接,只会共享它。对于这两个操作之间的确切区别,我不太清楚,因为上面实际上加载了一个页面,内容为
–听起来很像+1。但是,提交的页面确实是经过验证的,仅在Google+上共享了链接,而不会将其添加到用户的“ +1”中。
评论
还有没有以相同方式使用Facebook“赞”的方法?如果是,您可以回答我的问题:webmasters.stackexchange.com/questions/6218/…可悲的是,Google在控制错误方面正与苹果竞争。