コード例 #1
0
  //	@RequestMapping(method=RequestMethod.GET)
  public String facebook(Model model) {
    if (!facebook.isAuthorized()) {
      return "redirect:/connect/facebook";
    }

    return "hello";
  }
コード例 #2
0
  @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";
  }