开发者

How to let users post links/images to Facebook, Twitter, Buzz etc... from a Rails based website?

I'd like to offer users the ability to post images / links to articles from my web application to Facebook, Twitter, Buzz and any other social network.

A perfect example of the functionality I'm trying to replicate is mashable.com ... where each social network is represented by an icon that a) shows the number of shares AND b) allows users to click on it to post to that specific network.

开发者_StackOverflow

Don't know if it matters ... but the site is built using RoR.

Thanks


Here are the links for adding those social media buttons to your site:

Facebook: http://wiki.developers.facebook.com/index.php/Facebook_Share

Twitter: http://help.tweetmeme.com/2009/04/06/tweetmeme-button/

Buzz: http://www.google.com/buzz/api/admin/configPostWidget


I would first study the available APIs/Webservice documentations of Facebook, Twitter etc. You will learn if and how your features could be implemented. After that you have to write clients for each service. It doesn't matter if you are using Rails or another framework, Ruby or another language. It's all about HTTP requests/responses (or SOAP). There's also a good chance that somebody has already written a library, plugin or gem for your tasks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜