开发者

Button lib/API for digg, twitter, facebook etc?

Multiple sites have buttons where you can t开发者_Python百科weet, digg, etc. On this page you'll see you can buttons for 6 sites (search twitter and you'll see them).

Is there a lib or api i can use to generate these buttons?


http://bookmarkit.org

http://addthis.com


Take a quick look at the urls the buttons link to.

This is the one for twitter:

http://twitter.com/home?status=Check+out+http%3A%2F%2Ffav.me%2Fd2nh4ae+on+%23deviantart

If we undo the url-encoding this is what we'll get:

http://twitter.com/home?status=Check out http://fav.me/d2nh4ae on #deviantart

You don't need a library to generate those, it's just very simple string manipulations. All you need to know is the format for the specific sharing site (which you can snatch from wherever) and the url for the page you want to share.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜