Example usage for org.springframework.social.facebook.api.impl PagedListUtils getPagingParameters

List of usage examples for org.springframework.social.facebook.api.impl PagedListUtils getPagingParameters

Introduction

In this page you can find the example usage for org.springframework.social.facebook.api.impl PagedListUtils getPagingParameters.

Prototype

public static MultiValueMap<String, String> getPagingParameters(PagingParameters pagedListParameters) 

Source Link

Usage

From source file:org.springframework.social.facebook.api.impl.FriendTemplate.java

public PagedList<User> getFriendProfiles(String userId, PagingParameters pagedListParameters) {
    MultiValueMap<String, String> parameters = PagedListUtils.getPagingParameters(pagedListParameters);
    parameters.set("fields", FULL_PROFILE_FIELDS);
    return graphApi.fetchConnections(userId, "friends", User.class, parameters);
}