Spring Facebook Template map fetchObject to PagedList
I'm using the following approach to return a Facebook user's music preferences: //FIXME: Fetch results in a single operation val likes = facebook.likeOperations().music val artists = ArrayList<Artist>() for (musicLiked in likes) { val musicProfile = facebook.fetchObject(musicLiked.id, Page::class.java, "id", "name", "genre"); artists.add(Artist(name = musicProfile.name, genre = musicProfile.genre)) } The above approach won't scale, since we have an additional network operation for each artist the user likes. I tried: I tried using facebook.likeOperations.music however this doesn't fetch genre.