Sunday, May 25, 2014

Spring Social Google 1.0.0 Reaches General Availability

I am happy to announce the release of Spring Social Google 1.0.0.RELEASE ! I would like to thank everyone who contributed by testing and submitting issues and pull requests.

Spring Social Google contains bindings to Google Plus, Google Tasks and Google Drive APIs, and allows you to use any Java client library for any Google API while using Spring Social for authentication and connection management.

Project on GitHub:

Distribution bundle:

Reference manual:


Example application:

To use with Maven add the following code to your POM:

Creating a Google Cloud Project and Using it with Spring Social Google

Navigate to

Click "Create Project" and enter a name and ID for the project.

Enter the project and in the left menu select "APIs & Auth". In "APIs" activate the APIs you want to use in the application. The example application uses Google+ API and Tasks API.

In the left menu go to "Credentials" and click "Create new client ID". For "Application Type" choose "Web Application" and for "Authorized Redirect URI" enter "http://localhost:8080/signin/google".

The new set of credentials will be added. Note the "Cliend ID" and "Client Secret" values - we will use them when running the example application.

Get the example application from GitHub:
git clone git://

Enter the application directory and run it with Tomcat (replace CLIENT_ID and CLIENT_SECRET with the values you saw in Google Developers Console):
cd spring-social-google-example
mvn tomcat7:run \
   -Dgoogle.clientId=CLIENT_ID \

The application will run at http://localhost:8080/

The Road Ahead

There is no shortage of Google APIs. My current though is to proceed to YouTube and Calendar, but I really want to know what you want, so please submit your requests and issues in the GitHub project.

Enjoy using Spring Social Google!


  1. Hi, I encounter a question described here:
    Could you check about it.

  2. Great work Gabriel, Thank you!

  3. Hi Gabriel, Thanks for the great framework. The unfortunate part is I am unable to integrate your code into my existing Spring-MVC project. I am only looking for Google+ login. I tried Scribe but without success. What I require is I call a method in the Controller, which redirects the user to Google page, and then once the user authorizes, I have basic information like Email, Profile Photo in the backend. Next time the user should be able to click it again and Login, if not then the user will be registered with that account. I dont have any main class, and have mostly XML based configuration. Your project is vast to extract specifically what I want and use, pheraps you can help me filter out to what I need. Thanks a lot. Please feel free to email me at kernelfreak[at] Thanks.

  4. If all you need is Google+ sign in, I recommend doing it like so:

    Spring Social Google and similar libraries are suitable when you need to work with the Google APIs on the server side.

    1. Is there any way I can do this in Java, I might require some API's in future. Thanks.

    2. Then you should refer to the official Spring Social documentation. Though it doesn't contain examples with Google, you should get the idea. Also take a look at the example application with Google here:

  5. how to share messages in google plus using spring social?

  6. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. smm panels list

  7. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks first reseller panel