From a4fd00eca5d12a84f2bf7dcad94e663a7c17d5ee Mon Sep 17 00:00:00 2001 From: Andrew Lindley Date: Fri, 16 Oct 2015 16:21:45 +0200 Subject: [PATCH] some FB API calls can't handle the limit attribute --- .../java/org/backmeup/facebook/storage/Serializer.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backmeup-facebook-plugin/src/main/java/org/backmeup/facebook/storage/Serializer.java b/backmeup-facebook-plugin/src/main/java/org/backmeup/facebook/storage/Serializer.java index 9f7f1c7..e874290 100644 --- a/backmeup-facebook-plugin/src/main/java/org/backmeup/facebook/storage/Serializer.java +++ b/backmeup-facebook-plugin/src/main/java/org/backmeup/facebook/storage/Serializer.java @@ -80,13 +80,11 @@ public static void generateAll(FacebookClient fbc, Facebook facebook, File dir, listProps.put(PropertyFile.USER.toString(), path); // the Graph API only returns friends who are using this app, so it is useless to fetch them - Connection albums = fbc.fetchConnection("me/albums", Album.class, MasterParameter.getParameterByClass(Album.class), Parameter.with("limit", 200)); List albumList = new ArrayList<>(albums.getData()); - Connection photos = fbc.fetchConnection("me/photos", Photo.class, MasterParameter.getParameterByClass(Photo.class), - Parameter.with("limit", 200)); + Connection photos = fbc.fetchConnection("me/photos", Photo.class, MasterParameter.getParameterByClass(Photo.class)); Album lonelyAlbum = new Album(); lonelyAlbum.setName("Einzelbilder"); lonelyAlbum.setDescription("Fotos ohne Album"); @@ -298,8 +296,7 @@ public static Map albumInfo(Album album, FacebookClient f if (fakeAlbum && fakePhotos != null) { photosConn = fakePhotos; } else { - photosConn = fcb.fetchConnection(album.getId() + "/photos", Photo.class, MasterParameter.getParameterByClass(Photo.class), - Parameter.with("limit", 200)); + photosConn = fcb.fetchConnection(album.getId() + "/photos", Photo.class, MasterParameter.getParameterByClass(Photo.class)); } if (progress != null) { progress.progress("Fetching " + (album.getCount() != null && (maxPics > album.getCount()) ? album.getCount() : maxPics)