在我试图重新发明轮子之前,我想我会问专家。
我正在寻找一个多社交书签按钮,允许我允许人们推荐我的网站的特定页面到他们喜欢的社交网络/页面阅读器/搜索引擎。
约束(以及我不想使用ShareThis的原因)
初步研究:
Koehl博客在2009年有一个关于此的系列,然后话题逐渐消失。在那时,他推荐iBegin,后来成为了Share,并从一个名为Enthropia.com的网站上运行。检查该网站,发布的示例显然已过时。
有一次,AddToAny将允许在您自己的服务器上托管,但他们仍然使用该脚本来跟踪每个用户的Web使用情况,声称适当的匿名。对。不用了,谢谢。
另外一个,OpenLike有一个死网络服务器。
对SourceForge的搜索已经空了。 (我尝试搜索AddThis,AddToAny,Sharethis等名称,然后搜索到stumbleupon,reddit,digg,google plus。没有任何相关性。)
在这一点上,我面临着必须阅读和理解每个目标站点的api所以我可以编写一个正确的本地脚本。不是微不足道的。
在许多方面,理想情况是:*一个类似于大小和样式*的图标数组,每个图标都在目标页面上打开一个网页(例如FB,G +,StumbleUpon ..)*,其URL参数适合该页面。
但我不认为大多数这些网站都有这么简单的界面。
答案很简单。上面的理想工作,所以它主要是找到正确的代码和图标。我搜索中的关键项目是“分享到网址”
这是来自本网站的另一篇文章:
Facebook, Twitter, and Google +1 buttons using only HTML (No Javascript)
http://www.facebook.com/sharer.php?u=http://example.com
http://twitter.com/share?url=http://example.com&text=Description
https://plusone.google.com/_/+1/confirm?hl=en&url=http://example.com
见Wordpress share buttons without JS or plugins
<div class="social-button-container">
<div class="share_top_text">Share this post on:</div>
<div class="SocialCustomMenu">
<a class="scmTwitter" href="http://twitter.com/home/?status=<?php the_title();?> - <?php echo wp_get_shortlink();?> via @kenmata "title="Tweet this!">Twitter</a>
<a class="scmFacebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Facebook!">Facebook</a>
<a class="scmGoogleplus" href="https://plus.google.com/share?url=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Google +!">Google +</a>
<a class="scmPinterest" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Pinterest!">Pinterest</a></a>
</div>
</div>
虽然这些名义上是wordpress,但它们应该与任何使用php的Web服务器进行一些修改。或者可以轻松地将它们转换为使用模板工具包
Less social share links是非常干净的HTML的另一个例子。
你错过了一些功能:
具体细节:
博客
http://www.blogger.com/blog_this.pyra?t=&u={url}&n={title}
掘客
http://digg.com/ submit?phase=2&url={url}&title={title}
的diigo
http://www.diigo.com/post?url={url}&title={title}
电子邮件
mailto:?to=&subject={title}&body={url}%0A{description}
Facebook的
http://www.facebook.com/sharer.php?u={url}&t={title}
Gmail的
https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&su={title}&body={url}%0A{description}
谷歌书签
http://www.google.com/bookmarks/mark?op=add&bkmk={url}&title={title}
http://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&ro=false&summary={description}&source=
我的空间
http://www.myspace.com/Modules/PostTo/Pages/?u={url}&t={title}
Pinterest的
http://www.pinterest.com/pin/create/button/?url={url}&media={image}&description={title}
书签交易
http://reddit.com/submit?url={url}&title={title}
tumblr
http://www.tumblr.com/share/link?url={url}&name={title}&description={description}
推特
http://twitter.com/home?status={title}%20{url}
ymail
http://compose.mail.yahoo.com/?to=&subject={title}&body={url}%0A{description}
添加到@Sherwood Botsford的名单
flipboard http://share.flipboard.com/flipit/load?v=1.0&url=URL&title=TITLE
tumblr http://www.tumblr.com/share/link?url=URL&name=TITLE&description=TITLE
博客http://www.blogger.com/blog_this.pyra?t=&u=URL&n=TITLE
evernote http://www.evernote.com/clip.action?url=$URL&title=TITLE
getpocket http://getpocket.com/save?url=$URL&title=TITLE
编辑 - lyteshare.js是一个简单的javascript可以改进以添加更多的服务
更多链接的更多来源
两个非常全面的清单:
ss.js on github给出了这个最好的份额 - 适用于以前从未固定过的任何东西,没有脚本虽然很好
https://pinterest.com/pin/create/bookmarklet/?url={url}&media={image}&is_video={is_video}&description={title}
netvibes custom sharing有Buffer,百度,hootsuite等等
有人看到AddThis使用一种名为Fingerprint Canvas的新形式跟踪cookie的消息永远存在吗?
我认为我们需要一些像http://expando.github.io/这样的开源替代品