*/
public String checkOAuth2SocialAccount(final SocialProvider socialProvider,
final AccessGrant accessGrant) throws Exception {
String actionToDo = "";
if (socialProvider.equals(SocialProvider.FACEBOOK)) {
final FacebookAPIOperations facebookAPIOperations = new FacebookAPITemplate(accessGrant.getAccessToken());
final SocialAccount socialAccount = getSecurityService().getCurrentSocialAccount(socialProvider, facebookAPIOperations.getProfile().getId(), facebookAPIOperations.getProfile().getUsername());
if (socialAccount == null) {
getSecurityService().addNewSocialAccount(
accessGrant.getAccessToken(), accessGrant.getRefreshToken(), accessGrant.getExpires(),
facebookAPIOperations.getProfile(),
socialProvider, getUserAccount());
} else {
log.warn("This account already exist");
throw new EnMeExistPreviousConnectionException(getMessage("social.repeated.account"));
}