private void GetBands() { try { FacebookContext context = new FacebookContext(); context.Load <Band>(context.GetBandsQuery(AccessToken), (loadOp) => { if (!loadOp.HasError) { Bands.Clear(); foreach (Band band in loadOp.Entities) { Bands.Add(band); } } else { MessageBox.Show(loadOp.Error.ToString()); } }, null); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }