FacebookProfile profile = ((Facebook) api).userOperations().getUserProfile();
user.setEmail(profile.getEmail());
user.setNames(profile.getName());
user.setUsername(profile.getUsername());
} else if (api instanceof Twitter) {
TwitterProfile profile = ((Twitter) api).userOperations().getUserProfile();
user.setNames(profile.getName());
user.setUsername(profile.getScreenName());
}
} else {
user.setEmail(email);
model.addAttribute("type", "Persona");
}