我想获取用户是管理员的所有页面 ID,我有此代码,但它似乎不起作用
internal static IEnumerable<string> GetAllPages() { try { var fb = new FacebookClient(Settings.Default.AccessToken) { AppId = CurrentValues.appId, AppSecret = CurrentValues.appSecret }; List<string> pagesIds = new List<string>(); dynamic results = fb.Get("/me/pages"); var _sb = new StringBuilder(); foreach (var result in results.data) { pagesIds.Add(result.id); _sb.Append(result.id); _sb.Append(Environment.NewLine); } MessageBox.Show(_sb.ToString()); return pagesIds; } catch { MessageBox.Show("can't get all pages"); return null; } }