FQL query problem

Apr 28, 2010 at 2:04 PM


I trying to retrive user messages using fql query, I have this code

string fqlOutput = MainForm.stFacebookService.Api.Fql.Query("SELECT author_id,thread_id,body FROM message WHERE thread_id in (SELECT thread_id FROM thread WHERE folder_id = 0)");

            XDocument xml = XDocument.Parse(fqlOutput);

            XNamespace fbns = XNamespace.Get("http://api.facebook.com/1.0/");
            var feed = from fql_feed in xml.Root.Elements(fbns + "stream_post")
                       select new
                           AuthorID = fql_feed.Element(fbns + "author_id").Value,
                           Body = fql_feed.Element(fbns +"body").Value

the result set of feed varianble is empty, but I have messages on my facebook account, what I'm doing wrong??