JSONObject response = (new PostMethod() .setPostParameters(postArgs)
.setMethodURI(UriFactory.Auth.GET_ACCESS_TOKEN) ).call().getJSON();
try {
setAccessToken(new
AccessToken(response.getString("access_token")));
setSessionUser(new User(response.getJSONObject("user"),
getAccessToken().getTokenString()));
} catch (Exception e) {
throw new InstagramException("JSON parsing error");