public String oauth2Callback(
@RequestParam(value = "code", required = true) String code,
HttpServletRequest httpRequest,
WebRequest request) throws Exception {
try {
final AccessGrant accessGrant = auth2RequestProvider.getAccessGrant(code, httpRequest);
log.debug(accessGrant.getAccessToken());
log.debug(accessGrant.getRefreshToken());
checkOAuth2SocialAccount(SocialProvider.FACEBOOK, accessGrant);
} catch (EnMeOAuthSecurityException e1) {
RequestSessionMap.setErrorMessage(getMessage("errorOauth", httpRequest, null));
} catch (EnMeExistPreviousConnectionException e1) {
RequestSessionMap.setErrorMessage(getMessage("social.repeated.account", httpRequest, null));