fb:editor sample

Feb 14, 2008 at 12:01 AM
Is there any working example of <fb:editor> usage out there? Please.
I'm starting to believe, that the usage of fe:editor is impossible with asp.net.
Mar 2, 2008 at 2:25 PM
So, it looks like Facebook Developer Toolkit is utterly useless, when it comes to FBML powered apps.
Let's switch to Nikhil's Facebook.NET.
Mar 4, 2008 at 10:50 AM
you may find that the <fb:editor> tag renders its own html <form> tags, which means if you have it embedded in a <form> tag when you write it, it'll break.
this problem is not FDTK specific,
eg: http://kpumuk.info/facebook/fbeditor-editor-tag-in-facebook-applications/
Jun 13, 2008 at 9:06 PM
You can read the fields as query string parameters.
This form is taken straight from the developer's wiki.

<fb:editor action="ThisPage.aspx" labelwidth="100">
     <fb:editor-text label="Title" name="title" value=""/>
     <fb:editor-text label="Author" name="author" value=""/>
     <fb:editor-custom label="Status">
          <select name="state">
               <option value="0" selected>have read</option>
               <option value="1">am reading</option>
               <option value="2">want to read</option>
     <fb:editor-textarea label="Comment" name="comment"/>
          <fb:editor-button value="Add"/>
          <fb:editor-button value="Recommend"/>
          <fb:editor-cancel />

and in the code behind I just read the query string:

        protected void Page_Load(object sender, EventArgs e)
                if (GetQueryString("title") == "mytitle")
                Response.Write("I see your title!");

        private string GetQueryString(string param)
            return Request.QueryString[param];

Jun 13, 2008 at 9:39 PM
or even better:


(string key in Request.QueryString.AllKeys)


Response.Write(key +

" = " + Request.QueryString[key] + "<br>");