coding a Publisher Interface

May 8, 2009 at 7:34 PM
Edited May 8, 2009 at 7:38 PM

I want my app to live on the Publisher, but I mahaving some trouble building anything but the most simple publisher interface.

When a user clicks on the publisher link for yuor app, FB calls the appropriate postback URL you specify in yoru app settings.  In my .NET project I have implmented this as an HTTPHandler class


 In that class I am formatting a JSON string structured like this:



{"fbml":"Word of the Day<br /><input type='text' value='' name='word' />",


}, >"method":"publisher_getInterface" } 

 The problem seems to be the FBML string that I am returning. 

I want to be able to build a .NET page, using .NET server controls, and grab the outputted markup for that page and imbed it in the JSON block.

      MergedText =


I am using the FBMLRenderer in the toolkit, but the string it returns me breaks the JSON becasue the quotes are not escaped.

If I escape the quotes by hand in the IDE, I still have problems...

I think Ineed to get just the rendered output for the controls I want to display, not the entire ascx.

Am I on the righ track here?  Is anyone using a .NET page as a publisher interface?  HELP!



May 18, 2009 at 4:33 PM

fixed, sample code now on the wiki


David Carnley

dcarnley a t  ascit dot org.