In simple, the Facebook app pulls the album list from my Gallery2 db and publishes them as thumbnails to my Facebook profile. The hardest thing was finding my way around Gallery2's SQL Database, what a mess.
Now my problem is solved, and on top of that it was pretty cool learning how the Facebook API works, quite an interesting mechanism.
Update Dec 4, 2009: I took the onsite Gallery installation down after security concerns.
