title: Execute FQL Query using Facebook SDK C#
body: <pre><code>SELECT share_count, like_count, comment_count, total_count
  FROM link_stat
  WHERE url="http://www.facebook.com/cocacola"
  </code></pre>
  
  <p>I need to take the above fql query and using the Facbook SDK get the response and assign the response to variable and output to response.write. Visual Studio is giving me issues on the namespace.  When it seems I get the namespace working, then .Api is old construct?? Any help achieving my goal would be great. </p>
  
  <h2>CODEBEHIND</h2>
  
  <pre><code>using Facebook;
  using Facebook.Web;
  
  
      protected void Page_Load(object sender, EventArgs e)
      {
          var app = new FacebookApp();
          dynamic userInfo = app.Api("/4"); // Mark Zuck
          string firstName = userInfo.first_name;
          string lastName = userInfo.last_name;
          string email = userInfo.email;
          dynamic likes = app.Api("/4/likes");
          foreach (var like in likes.data)
          {
              string name = like.name;
              Response.Write(name);
          }
      }
  </code></pre>
  
  <p>Ive removed some lines from the above code, the standard VS generated code, to make it smaller. Thanks for your help!</p>