Skip to content

Instantly share code, notes, and snippets.

@krams915
Created December 10, 2012 03:17
Show Gist options
  • Select an option

  • Save krams915/4248183 to your computer and use it in GitHub Desktop.

Select an option

Save krams915/4248183 to your computer and use it in GitHub Desktop.
FacebookController.java snippet
@RequestMapping(value="/profile")
public String getProfile(ModelMap model) {
try {
Facebook facebook = connectionRepository.getPrimaryConnection(Facebook.class).getApi();
model.addAttribute("profileLink", facebook.userOperations().getUserProfile().getLink());
model.addAttribute("profileInfo", facebook.userOperations().getUserProfile());
return "facebook/profile";
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment