Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Add ALBUM_FIELDS and fix typo in ALL_PHOTO_FIELDS #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public PagedList<Album> getAlbums(String userId) {
}

public PagedList<Album> getAlbums(String userId, PagingParameters pagedListParameters) {
return graphApi.fetchConnections(userId, "albums", Album.class, getPagingParameters(pagedListParameters));
return graphApi.fetchConnections(userId, "albums", Album.class, getPagingParameters(pagedListParameters), ALBUM_FIELDS);
}

public Album getAlbum(String albumId) {
Expand Down Expand Up @@ -178,6 +178,10 @@ public void tagVideo(String videoId, String userId) {

static final String[] ALL_PHOTO_FIELDS = {
"id", "album", "backdated_time", "backdated_time_granularity", "created_time", "from", "height", "picture",
"source", "link", "icon", "images", "name", "page_story_id", "place,updated_time", "tags"
"source", "link", "icon", "images", "name", "page_story_id", "place", "updated_time", "tags"
};

static final String[] ALBUM_FIELDS = {
"id", "count", "name", "type"
};
}