Wednesday, 13 April 2016


Getting started with Facebook oauth2 api using postman

Facebook oauth2/

go the facebook developer
URL : https://developers.facebook.com/
Login/register
Register as facebook developer and click on basic setup

a) Create a New App ID  by providing the basic details and submit
b) get the appid , api version, app secret, Client Token
c) Enter the above details in postman client.
c.1) auth URL : https://graph.facebook.com/oauth/authorize
c.2) Access Token URL : https://graph.facebook.com/oauth/access_token
c.3) client id : "facebook App ID"
c.4) client secret : "facebook app secret "

d) You will be redirected to linked page
Authenticating the LinkedIn Account
enter the credentails and allow access

to access basic profile of the user

ex :  https://graph.facebook.com/me?access_token="genrated token"

append genrated token.

e) weill be able to see basic user details as response

Tuesday, 12 April 2016


Getting started with linkedin api using postman

1) Create an application on linkedin
url : https://www.linkedin.com/secure/developer?newapp=

2) provide the details OAuth 2.0
Authorized Redirect URLs for postman :
URL : https://www.getpostman.com/oauth2/callback

REF : postman helpers (https://www.getpostman.com/docs/helpers)
 

3) Get the Authentication Keys.
a) Client ID:
b) Client Secret:

4) start the postman client
a) go to authorization select the OAuth 2 fill the following

Auth URL :  https://www.linkedin.com/uas/oauth2/authorization
Access Token URL :  https://www.linkedin.com/uas/oauth2/accessToken
Client ID : "provide the genrated client id"
Client Secret : "provide the genrated client secret"
Scope : r_basicprofile
Token Name : TokenName
Grant Type :  Authorization code

and click on : request access token locally

5) now click on Request token

6) You will be redirected to linked page
Authenticating the LinkedIn Account
enter the credentails and allow access

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]A child container failed during start

solution : clean the tomcat server on eclipse and restart the server.


Monday, 11 April 2016

Find the folder in ubuntu.

"find" is the command to find the folder or directory.

ex : find / -name "voice"
Jenkins installation on redhat for aws

REF  : wiki.jenkins-ci.org

Thursday, 7 April 2016

Spring logging

error :

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component

include the common-logging dependency.

Commons Logging is the logging framework that Spring uses to log



Jersey :
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.

In the service class provide the root path. if root is not provide or we have not annoted class with @Path.

ex :

@Service
@Path("/test")     // provide the root path
public class voice {

@Path("/hello")
public class HelloWorldService {

@GET
@Path("/{param}")
public Response getMsg(@PathParam("param") String msg) {

String output = "Jersey say : " + msg;

return Response.status(200).entity(output).build();

}

}

}