tags:

views:

34

answers:

1

Hi!

I trying to retrive user's 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 inbox folder, what I'm doing wrong??

A: 

Make sure you've granted the read_mailbox extended permission to your app.

Daniel Schaffer
yes permissions granted, no errors in application, the query is executed but result is empty
Maki