// @RequestMapping(method=RequestMethod.GET) public String facebook(Model model) { if (!facebook.isAuthorized()) { return "redirect:/connect/facebook"; } return "hello"; }
@RequestMapping(method = RequestMethod.GET) public String helloFacebook(Model model) { if (!facebook.isAuthorized()) { return "redirect:/connect/facebook"; } FacebookProfile facebookProfile = facebook.userOperations().getUserProfile(); model.addAttribute(facebookProfile); // PagedList<Checkin> homeFeed = facebook.placesOperations().getCheckins(); // model.addAttribute("feed", homeFeed); return "hello"; }