cshold/jQuery-Facebook-Photo-Selector — pull request #7 by iamcal (2013-05-31 21:56:13+00:00)
Title: Exclude empty albums

If you have an empty album (possible, since all users have a 'Timeline Photos' album which can be empty), the selector still shows it. When you select it, the behavior of the photo loader (retry when we have zero photos) means an infinite loop.

Or rather, it just crashes since you never initialize the 'photos' variable. So that's in here too. If you opened an album first, then switched to an empty one, the empty one would incorrectly show the contents of the first album.