Social Newtork API Integration – Spring Social

In recent times there have been two hot topic for discussion in software industry – Cloud Computing and Social Network. Social media usage is growing and there is huge potential in this area. All big social website (as Facebook, Twitter, LinkedIn, GreenHouse etc) has exposed there API’s to be leveraged booming social media usage/reachability. OAUTH define protocol for API usage while interacting within web in secured manner.

What is OAUTH?

OAUTH protocol defines specification to allow secure API authorization in a simple and standard method from desktop and web applications. It provides a method for clients to access server resources on behalf of a resource owner (such as a different client or an end-user). It also provides a process for end-users to authorize third-party access to their server resources without sharing their credentials (typically, a username and password pair), using user-agent redirections. For more details visit http://oauth.net/

Social Network API Usage?

Most of the Social media API are accessed via OAUTH 1.0 protocol but in case you want to interact with Facebook you need to use OAUTH 2.0. You can see OAUTH 2.0 usage more going forward.  Social websites are based around idea to build social relations among people, who share interests or activities and allow users to share ideas/events. A 2011 survey found that 47% of American adults used a social network. There is a lot of effort going on to provide generic set of API/Wrapper to facilitate social interaction. Challenge is to have simple and robust way to build application/SAAS over social network for rapid development and leverage network strength over web.

Spring Social

During last month after analysis I decided to use Spring Social (http://www.springsource.org/spring-social) to build SAAS over social network. It was enthusiastic to be able to integrate with Facebook/twitter in short span of time. This project is in nascent phase and rapidly growing to provide facility to integrate with different social n/w. It is impressive to see Spring community approach for Social project development. At start they packaged different social interfaces within one component but soon realized and split them to individual package/component (Spring Social 1.0.0 has individual package for Core, Facebook, Twitter, LinkedIn etc).

Last week I was stuck into issue while integrating with Facebook API. Issue was redirection was not routing as expected after Facebook authentication in case within application you have configured dispatcher url pattern dispatcher. It was interesting to work with Spring forum and look approach of resolution. They analyzed that problem should be addressed within Spring social (web project) and went ahead to fix and release new build for the issue (Spring Social 1.0.1).

Can see details at http://forum.springsource.org/showthread.php?114836-API-binding-was-created-without-authorization and https://jira.springsource.org/browse/SOCIAL-258

In case you want to go Spring way for social API integration refer below links:
Spring-social: http://www.springsource.org/spring-social
Quick Start: https://github.com/SpringSource/spring-social/wiki/Quick-Start
OAUTH: http://hueniverse.com/oauth/

Advertisements

2 Responses to Social Newtork API Integration – Spring Social

  1. Pingback: Social Newtork API Integration – Spring Social « Shishir Kumar Blog

  2. Boulid says:

    Thank you, for Sharing the experience.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: