Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

If you want to use the Google Plus API in your project, you have to create an app first. This is a relatively easy process and is described in the quick-start sample apps that Google provides, however here's another version with screenshots, because pictures are easier to follow than blocks of text.

So lets get started, but first here are some links that will be useful throughout this post:

To create an app, go to the Google Developer Console and click 'Create Project'.
pg_1.png


Fill in the Project Name and the Project ID and click 'Create'.
pg_2.png


Navigate to APIs & Auth > APIs and under Social APIs click Google+ API.
pg_3.png




Click 'Enable API'.
pg_4.png


Navigate to Consent Screen page and enter your email address and the product name, then click 'Save'.
pg_5.png


Navigate to the Credentials page and click 'Create new Client ID'. Select Web application. Enter the JavaScript origins for your app, this is the domain name where your app will run from. Enter the authorised redirect URIs, this is where the OAuth2 redirection navigate to on your domain once Google has authenticated your user. Click 'Create Client ID'.
pg_6.png


Once the client ID is created, the Credentials page will show two new important pieces of information, the client ID and the client secret. These are required for OAuth2 functionality used with Google+ API.
pg_7.png


-i

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.