title: facebook c# sdk: how to get all user facebook pages
body: <p>I want to retrieve all page names the user is administering. Ive came across <a href="https://stackoverflow.com/questions/2966015/facebook-get-list-of-pages-that-a-user-is-admin-of">this post</a> which is exactly what I want using graph api and not the FQL. Ive gotten the access token already but I cant debug using the below code. Anybody knows how do I achieve this?</p>
  
  <pre><code>//view all user pages
      private void pageBtn_Click(object sender, EventArgs e)
      {
  
          FacebookAPI api = new Facebook.FacebookAPI(myToken.Default.token);
  
          JSONObject pageData = api.Get("/me/account");//pulls all the pages 
  
  
          var data = pageData.Dictionary["name"];
  
          List&lt;JSONObject&gt; pageList = data.Array.ToList&lt;JSONObject&gt;();
  
  
          foreach (var page in pageList)
          {
              lbPages.Items.Add(page.Dictionary["name"].String);
          }
  
      }
  </code></pre>