public static void CreateAlbumIfNotExists(String AlbumName)
 {
     if (!AlbumExists(AlbumName))
     {
         AID newAID = new AID(fbService.Photos.CreateAlbum(AlbumName, null, UpPhotoCaption).aid);
         //this is going to cause problems if there are multiple albums with the same name. Not many people
         //have multiple albums with the same name, so no need to worry about it for now.
         AIDCache[AlbumName] = newAID;
     }
 }
 public static String AlbumName(AID aid)
 {
     //no way to get the key from the value in AIDCache, so just get it from Facebook.
     return fbService.Photos.GetAlbums(0, new List<String> { aid.ToString() })[0].name;
 }