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

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

Introduction

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

Prototype

PagedList<Page> getTelevision();

Source Link

Document

Retrieves a list of television shows 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";
}