简体   繁体   中英

Java library for Social networking Application

是否有一个Java库提供开发社交网络应用程序的功能,如添加好友,查找最近邻居,发送消息等等。我知道这要求太多,但只是想知道这样的库是否真的存在。

This is very broad functionality. Here are some related projects:

If you want to add support for existing social network applications than I think all of the Bozho's solution would be ok for socializing your applications. For distance based calculations (geocoding) you will have to use separate mechanism and librabry google and yahoo both have an excellent api for that though these differ in terms of their usage restrictions so its good to you research before deciding one, Yahoo also supplies a promising feature YQL which is also useful in some cases.... Which one of them is better depends on your requirements... see following questions finding latitude and longitude , another similar question and finding distance between two zipCodes

If you want to create your own social networking site as then I think you will have to start by ur own... However It would be a nice idea to integrate that site with existing popular social networks using OAuth or open ID....

@Bozho's answer is valid, all those libraries integrate with a set of Social services.

This question really depends on the extent of integration you want. I've worked on a couple of large scale Social aggregators and I've found that such a silver bullet just doesn't exist. I've found the best results in my experience by using small lightweight libraries that do one thing well.

For example, say I wanted to integrate with Twitter, Facebook, and Google Talk. I might use Scribe for my authentication code, Jackson for parsing JSON API responses to my business objects and Smack for doing my XMPP work.

There are certainly pros and cons for both methods; the major benefits I've found of avoiding massive libraries are:

  • Flexibility. For example your business objects only contain the information you care about.
  • Testability. You can compose your components in such a way that tests are easy to write around them.
  • Robust. You are not constrained by a 3rd parties implementation of typically volatile 3rd party APIs.
  • Less code. Using a collection of small, proven libraries will result in less of a footprint: less code to manage = less that can go wrong.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM