Hi all, How to execute the fql in asp.net? I used the following code, but I coult not get response.
public partial class _Default : System.Web.UI.Page { facebook.Components.FacebookService fb = null;
public _Default() {
fb = new FacebookService();
fb.ApplicationKey = "a1eb7d8b0864cbae129891e93f2dcc96";
fb.Secret = "0d1ca30f9af6d7bdfc94eab67d5268d5";
fb.IsDesktopApplication = false;
}
protected void Page_Load(object sender, EventArgs e) {
infobel_FacebookMethod();
}
private void infobel_FacebookMethod() {
try {
string s;
string query1, query2;
// I could not get respnse for this query. I can get empty string.
query1 = "select name, first_name from user where name = 'Suresh Rajan'";
s = fb.fql.query(query1);
//i can get response for this query
query2 = "select name, first_name, from user where uid = '1730923544'";
s = fb.fql.query(query2);
}
catch (Exception exp)
{
Response.Write("Message = " + exp.Message + "<br />");
Response.Write("ToString = " + exp.ToString());
}
}
}
could anyone tell me how execute fql in asp.net?
thanks r.e