Example usage for org.springframework.social.facebook.api LikeOperations getMovies

List of usage examples for org.springframework.social.facebook.api LikeOperations getMovies

Introduction

In this page you can find the example usage for org.springframework.social.facebook.api LikeOperations getMovies.

Prototype

PagedList<Page> getMovies();

Source Link

Document

Retrieves a list of movies that the authenticated user likes.

Usage

From source file:com.vmware.entertainmentetc.HomeController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Model model) throws RemixException {

    LikeOperations likes = facebook.likeOperations();
    model.addAttribute("movies", likes.getMovies());
    model.addAttribute("television", likes.getTelevision());
    model.addAttribute("location", facebook.userOperations().getUserProfile().getLocation().getName());

    return "home";
}