I'm trying to get latest profile pictures of the requesting user (with the user_photos
permission, of course). Getting the current profile picture is trivial, getting the latest photos (including all photos, not just profile pictures) is trivial, but getting latest profile pictures explicitly doesn't seem to be trivial.
I can get all albums, iterate them all, find the one with the type
set to profile
, then find photos in that albums by its ID. But this includes multiple queries, and I'm not even counting corner cases where user may have too many albums updated recently that we need to paginate down to Profile Pictures album etc.
Is there a way to get current user's latest profile pictures in a single query, just like in the old days of FQL?