how to respond to MockAJAX calls

Sep 5, 2007 at 1:52 AM says that MockAJAX calls (to dynamically refresh an app's content on the profile page) expect fbml, not html. When playing around with it, even clean aspx pages where served by my IIS in a way that facebook didn't accept the content because of html elements. (I guess IIS includes those automatically)

When directing the MockAJAX calls to a static xml page with some fbml, it worked, but of course I need to get this done dynamically. Is setting up a small service with an asmx page the right way or are there other ways that work (and that I might be more familial with...)?
Sep 7, 2007 at 2:15 AM
Looking into web services I had to realize that this won't be the way to go. Now I am experimenting with response.write(fbml code as string) but can't get it to work either. I am currently simply trying to get this
<fb:ref url="http://mysite/fb/fbml.aspx" />
to return anything in the test console ( )
but unless I use a static .xml file with the fbml in it I don't get any result.

My code behind in fbml.aspx is
Imports Facebook
Imports Facebook.WebControls

Partial Public Class _fbml
Inherits CanvasIFrameBasePage
Private Const FACEBOOKAPIKEY As String = (my api key)
Private Const FACEBOOK_SECRET As String = (my app's secret)
Dim u As Facebook.Entity.User

Protected Shadows Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
MyBase.Page_Load(sender, e)
FBService.SessionKey = (my own infinite session key)
Response.Write("<fb:fbml version=""1.1""><fb:visible-to-friends>test</fb:visible-to-friends>test2</fb:fbml> ")
End Sub

Did anyone ever succeed with anything else but setFBML in order to refresh the application's content in the profile and if yes, how?