views:

89

answers:

0

Hi

I am using the Facebook Toolkit and making a request using FQL.Multiquery.

I am using the following code which returns the correct data:

Dim query1 As String = String.Format("SELECT post_id, actor_id, target_id, message FROM stream WHERE source_id in (SELECT target_id FROM connection WHERE source_id={0}) AND is_hidden = 0", FBuserId)
                Dim query2 As String = "SELECT pic FROM user WHERE uid IN (SELECT actor_id FROM #firstQuery)"
                Dim queries = New Dictionary(Of String, String)
                queries.Add("firstQuery", query1)
                queries.Add("secondQuery", query2)
                Dim result As List(Of Facebook.Schema.fql_result) = q.Multiquery(queries)

When I run this 'result' list is populated with the results of the two queries in XML but I am unsure how I can send this list to the browser in JSON. I am using asp.net MVC.

Can anyone help?