开发者

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

开发者 https://www.devze.com 2022-12-26 16:44 出处:网络
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).

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

精彩评论

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