I'm currently doing the following FQL query to return all the logged-in user albums that have at least one photo (with the number of photos):
SELECT object_id, name, photo_count
FROM album
WHERE owner = me() AND photo_count > 0
Unfortunately, platform version 2.1 has removed FQL support.
I know I can get the values in question with the following call:
me/albums?fields=name,id,count
But I could not find a way to filter empty albums.
Iterating each value and checking those with count
non-zero is not very convenient since a user can have a large number of albums; I would be required to iterate over multiple pages just to count the number of non-empty albums.
Cross posting for SOen: Question at English