Comment Box FBML

Discussion in 'FaceBook' started by jilawatan, Mar 17, 2010.

  1. jilawatan

    jilawatan Newbie

    Joined:
    Mar 17, 2010
    Messages:
    6
    Likes Received:
    0
    i am trying to add a comment box like added at this page ...

    http://www.facebook.com/pages/Whoa-did-you-know-you-could-do-THIS-with-your-iPod/10150153432910724?ref=mf#!/pages/Whoa-did-you-know-you-could-do-THIS-with-your-iPod/10150153432910724?v=app_4949752878&ref=mf

    http://www.facebook.com/pages/MAFIA-WARS-Get-4-FREE-ENERGY-PACKS-every-7-hours-100-Working/362690073027?v=app_4949752878

    but when some one writes at comment box and sends it .. it dont show the pop up window like it use to show in the above pages " waiting for approval "

    help please
    my page
    http://www.facebook.com/FindThatWoman?v=app_7146470109
     
  2. DJJack

    DJJack Regular Member

    Joined:
    Jan 10, 2010
    Messages:
    321
    Likes Received:
    150
    Gender:
    Male
    Occupation:
    Web Developer, Events Guru
    Location:
    UK
    Home Page:
    Use the <fb:dialog> tag. That you can link to the button and create a popup.
    Im not giving you the full code but that is what you need,
     
  3. jilawatan

    jilawatan Newbie

    Joined:
    Mar 17, 2010
    Messages:
    6
    Likes Received:
    0
    hey this is my comment box code.. please fix it and paste the codes here

    HTML:
    <div class="right_column_container clearfix">
      <div id="right_column" class="right_column">
        <div id="pagelet_tab_content">
          <div id="c4ba105421eb9b2c65956b">
            <div id="tab_canvas">
              <div>
                <div id="app_content_6009294086" class="app_tab app_content_6009294086">
                  <div>
                    <div style="position: relative; overflow: hidden;">
                      <div style="overflow: 
    hidden; position: relative;">
                        <div id="app6009294086_app4949752878_wrapper" style="border: 1px solid 
    rgb(239, 239, 239); margin: 0pt auto; padding: 5px; width: 360px; float:
     left;" fbcontext="2ec298470a0a">
                          <div id="app6009294086_app4949752878_step1" style="width: 173; height: 5" fbcontext="2ec298470a0a">
                            <center><center><center>
                            <p> </p>
                            </center></center></center>
                            <div class="comment_box" data-ft="{"type":"ufi"}">
                              <div class="like_box ufi_section">
                                <div class="UIImageBlock clearfix">
                                  <div class="UIImageBlock_Content UIImageBlock_ICON_Content">
                                    <a onclick="(new 
    Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {(new a6009294086_Image()).src = 
    '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=e4b6a08ade353023a1afd6aebf601e5c&position=16&'
     + 
    a6009294086_Math.random();a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return
     
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     {(new a6009294086_a4949752878_Image()).src = 
    '/ajax/ct.php?app_id=7146470109&action_type=3&post_form_id=fd1c63e93504fb4177fe9a69acff51d4&position=16&'
     + a6009294086_a4949752878_Math.random();return true;},4949752878],new 
    a6009294086_fbjs_event(a6009294086_event));return true;},6009294086],new
     fbjs_event(event));return true;" title="Click to see people who like 
    this item" href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?v=app_6009294086#">
                                    98,438 people</a> like this.</div>
                                </div>
                              </div>
                              <div class="feed_comments">
                                <div fbcontext="2ec298470a0a" class="ufi_section  UIImageBlock clearfix" id="app6009294086_app4949752878_app7146470109_comment_1">
                                  <a onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {(new a6009294086_Image()).src = 
    '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=e4b6a08ade353023a1afd6aebf601e5c&position=16&'
     + 
    a6009294086_Math.random();a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return
     
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     {(new a6009294086_a4949752878_Image()).src = 
    '/ajax/ct.php?app_id=7146470109&action_type=3&post_form_id=fd1c63e93504fb4177fe9a69acff51d4&position=16&'
     + a6009294086_a4949752878_Math.random();return true;},4949752878],new 
    a6009294086_fbjs_event(a6009294086_event));return true;},6009294086],new
     fbjs_event(event));return true;" href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?_fb_fromhash=27d53801bab2641127b7351799dffcfd&_fb_fromhash=e8393cae2a5f676fe5d0e04538ea8152&_fb_fromhash=22c97e9f9e2896c58b622e922272b18b" class="UIImageBlock_Image UIImageBlock_SMALL_Image" title>
                                  <img class="UIProfileImage UIProfileImage_SMALL img" src="http://i841.photobucket.com/albums/zz338/oniraug/antman.jpg" alt width="50" height="50"></a><div class="UIImageBlock_Content 
    UIImageBlock_SMALL_Content">
                                    <div class="comment_text">
                                      <a href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?v=app_6009294086#" onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();return true;">Sadia Iqbal</a><div fbcontext="2ec298470a0a" id="app6009294086_app4949752878_app7146470109_text_expose_id_4b77bf3d56c0016429ac0" class="comment_actual_text" style>
                                        I invited all my friends =)  ♥
                                      </div>
                                    </div>
                                    <div class="comment_actions">
                                      <abbr class="timestamp" title="Sat, 3 Mar 2010 
    15:13:24 -0800">4 hours ago</abbr></div>
                                  </div>
                                </div>
                                <div fbcontext="2ec298470a0a" class="ufi_section  UIImageBlock clearfix" id="app6009294086_app4949752878_app7146470109_comment_2">
                                  <a onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {(new a6009294086_Image()).src = 
    '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=e4b6a08ade353023a1afd6aebf601e5c&position=16&'
     + 
    a6009294086_Math.random();a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return
     
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     {(new a6009294086_a4949752878_Image()).src = 
    '/ajax/ct.php?app_id=7146470109&action_type=3&post_form_id=fd1c63e93504fb4177fe9a69acff51d4&position=16&'
     + a6009294086_a4949752878_Math.random();return true;},4949752878],new 
    a6009294086_fbjs_event(a6009294086_event));return true;},6009294086],new
     fbjs_event(event));return true;" href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?_fb_fromhash=27d53801bab2641127b7351799dffcfd&_fb_fromhash=e8393cae2a5f676fe5d0e04538ea8152&_fb_fromhash=22c97e9f9e2896c58b622e922272b18b" class="UIImageBlock_Image UIImageBlock_SMALL_Image" title>
                                  <img class="UIProfileImage UIProfileImage_SMALL img" src="http://i841.photobucket.com/albums/zz338/oniraug/bman.jpg" alt width="50" height="50"></a><div class="UIImageBlock_Content 
    UIImageBlock_SMALL_Content">
                                    <div class="comment_text">
                                      <a href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?v=app_6009294086#" onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();return true;">Rohan Ali</a><div fbcontext="2ec298470a0a" id="app6009294086_app4949752878_app7146470109_text_expose_id_4b77bf3d56c0016429ac0" class="comment_actual_text">
                                        Hi, am proud to be a Muslim
                                      </div>
                                    </div>
                                    <div class="comment_actions">
                                      <abbr class="timestamp" title="Sat, 3 Mar 2010 
    15:13:24 -0800">3 hours ago</abbr></div>
                                  </div>
                                </div>
                                <div fbcontext="2ec298470a0a" class="ufi_section  UIImageBlock clearfix" id="app6009294086_app4949752878_app7146470109_comment_3">
                                  <a onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {(new a6009294086_Image()).src = 
    '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=e4b6a08ade353023a1afd6aebf601e5c&position=16&'
     + 
    a6009294086_Math.random();a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return
     
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     {(new a6009294086_a4949752878_Image()).src = 
    '/ajax/ct.php?app_id=7146470109&action_type=3&post_form_id=fd1c63e93504fb4177fe9a69acff51d4&position=16&'
     + a6009294086_a4949752878_Math.random();return true;},4949752878],new 
    a6009294086_fbjs_event(a6009294086_event));return true;},6009294086],new
     fbjs_event(event));return true;" href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?_fb_fromhash=27d53801bab2641127b7351799dffcfd&_fb_fromhash=e8393cae2a5f676fe5d0e04538ea8152&_fb_fromhash=22c97e9f9e2896c58b622e922272b18b" class="UIImageBlock_Image UIImageBlock_SMALL_Image" title>
                                  <img class="UIProfileImage UIProfileImage_SMALL img" src="http://i841.photobucket.com/albums/zz338/oniraug/cars.jpg" alt width="50" height="50"></a><div class="UIImageBlock_Content 
    UIImageBlock_SMALL_Content">
                                    <div class="comment_text">
                                      <a href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?v=app_6009294086#" onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();return true;">Hina Tariq</a><div fbcontext="2ec298470a0a" id="app6009294086_app4949752878_app7146470109_text_expose_id_4b77bf3d56c0016429ac0" class="comment_actual_text" style>
                                        I love ALLAH !</div>
                                    </div>
                                    <div class="comment_actions">
                                      <abbr class="timestamp" title="Sat, 3 Mar 2010 15:13:24 -0800">
                                      about an hour ago</abbr></div>
                                  </div>
                                </div>
                                <div fbcontext="2ec298470a0a" class="ufi_section  UIImageBlock clearfix" id="app6009294086_app4949752878_app7146470109_comment_4">
                                  <a onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {(new a6009294086_Image()).src = 
    '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=e4b6a08ade353023a1afd6aebf601e5c&position=16&'
     + 
    a6009294086_Math.random();a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return
     
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     {(new a6009294086_a4949752878_Image()).src = 
    '/ajax/ct.php?app_id=7146470109&action_type=3&post_form_id=fd1c63e93504fb4177fe9a69acff51d4&position=16&'
     + a6009294086_a4949752878_Math.random();return true;},4949752878],new 
    a6009294086_fbjs_event(a6009294086_event));return true;},6009294086],new
     fbjs_event(event));return true;" href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?_fb_fromhash=27d53801bab2641127b7351799dffcfd&_fb_fromhash=e8393cae2a5f676fe5d0e04538ea8152&_fb_fromhash=22c97e9f9e2896c58b622e922272b18b" class="UIImageBlock_Image UIImageBlock_SMALL_Image" title>
                                  <img class="UIProfileImage UIProfileImage_SMALL img" src="http://i841.photobucket.com/albums/zz338/oniraug/jaff.jpg" alt width="50" height="50"></a><div class="UIImageBlock_Content 
    UIImageBlock_SMALL_Content">
                                    <div class="comment_text">
                                      <a href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?v=app_6009294086#" onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();return true;">Nasir Malik</a><div fbcontext="2ec298470a0a" id="app6009294086_app4949752878_app7146470109_text_expose_id_4b77bf3d56c0016429ac0" class="comment_actual_text">
                                        OMG this is the largest group of Muslims on 
                                        facebook</div>
                                    </div>
                                    <div class="comment_actions">
                                      <abbr class="timestamp" title="Sat, 3 Mar 2010 
    15:13:24 -0800">about an hour ago</abbr></div>
                                  </div>
                                </div>
                                <div fbcontext="2ec298470a0a" class="ufi_section  UIImageBlock clearfix" id="app6009294086_app4949752878_app7146470109_comment_5">
                                  <a onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {(new a6009294086_Image()).src = 
    '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=e4b6a08ade353023a1afd6aebf601e5c&position=16&'
     + 
    a6009294086_Math.random();a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return
     
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     {(new a6009294086_a4949752878_Image()).src = 
    '/ajax/ct.php?app_id=7146470109&action_type=3&post_form_id=fd1c63e93504fb4177fe9a69acff51d4&position=16&'
     + a6009294086_a4949752878_Math.random();return true;},4949752878],new 
    a6009294086_fbjs_event(a6009294086_event));return true;},6009294086],new
     fbjs_event(event));return true;" href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?_fb_fromhash=27d53801bab2641127b7351799dffcfd&_fb_fromhash=e8393cae2a5f676fe5d0e04538ea8152&_fb_fromhash=22c97e9f9e2896c58b622e922272b18b" class="UIImageBlock_Image UIImageBlock_SMALL_Image" title>
                                  <img class="UIProfileImage UIProfileImage_SMALL img" src="http://i841.photobucket.com/albums/zz338/oniraug/nuggy.jpg" alt width="50" height="50"></a><div class="UIImageBlock_Content 
    UIImageBlock_SMALL_Content">
                                    <div class="comment_text">
                                      <a href="http://www.facebook.com/pages/Mecca-Saudi-Arabia/i-love-ALLAH/44754046283?v=app_6009294086#" onclick="(new Image()).src = 
    '/ajax/ct.php?app_id=6009294086&action_type=3&post_form_id=e244df5e69cfe9d9a6cff01ef3f7750d&position=16&'
     + Math.random();return true;">Sana Zulfiqar</a><div fbcontext="2ec298470a0a" id="app6009294086_app4949752878_app7146470109_text_expose_id_4b77bf3d56c0016429ac0" class="comment_actual_text" style>
                                        May Allah Bless us
                                      </div>
                                    </div>
                                    <div class="comment_actions">
                                      <abbr class="timestamp" title="Sat, 3 Mar 2010 15:13:24 -0800">
                                      about an hour ago</abbr></div>
                                  </div>
                                </div>
                                <div style="display: none;">
                                  <div id="app6009294086_my_dialog" fbcontext="ed66e3b969cd">
                                    <h2 class="dialog_title">My Little Dialog</h2>
                                    <div class="app_content_6009294086" style="padding: 10px;">
                                      <form id="app6009294086_my_form" fbcontext="26b402c3c472">
                                        <input name="fb_sig_profile" value="44754046283" type="hidden">
                                        <input name="fb_sig_is_admin" value="1" type="hidden">
                                        <input name="fb_sig_type" value="LOCAL_BUSINESS" type="hidden">
                                        <input name="fb_sig_is_fan" value="1" type="hidden">
                                        <input name="fb_sig_locale" value="en_US" type="hidden">
                                        <input name="fb_sig_in_new_facebook" value="1" type="hidden">
                                        <input name="fb_sig_time" value="1268843842.1458" type="hidden">
                                        <input name="fb_sig_added" value="0" type="hidden">
                                        <input name="fb_sig_page_id" value="44754046283" type="hidden">
                                        <input name="fb_sig_page_added" value="1" type="hidden">
                                        <input name="fb_sig_api_key" value="4388c0c374edd1e6614cb63e3ddcfc72" type="hidden">
                                        <input name="fb_sig_app_id" value="6009294086" type="hidden">
                                        <input name="fb_sig" value="2a191048cfd85d7b2141e9ec60850c5c" type="hidden">
                                        <p>Do you like my little dialog?</p>
                                      </form>
                                    </div>
                                    <div class="dialog_buttons">
                                      <input class="inputsubmit" name="confirm" value="Yes" onclick="FBML.clickRewriteAjax("6009294086", 0, 
    "app6009294086_my_dialog", 
    "http:\/\/www.some_url_here.com\/dialog_return.php", 
    $("app6009294086_my_form"), "");return false;" type="submit"></div>
                                  </div>
                                </div>
                                <div class="ufi_section comments_add_box clearfix      ">
                                  <div style="display: none;">
                                    <div fbcontext="2ec298470a0a" id="app6009294086_app4949752878_app7146470109_moderated">
                                      <h2 class="dialog_title">Comment </h2>
                                      <div style="padding: 10px;" class="app_content_7146470109">
                                        Your comment is awaiting approval.
                                      </div>
                                      <div class="dialog_buttons">
                                        <input onclick="fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {a6009294086_fbjs_sandbox.instances.a4949752878.bootstrap();return 
    a6009294086_fbjs_dom.eventHandler.call([a6009294086_fbjs_dom.get_instance($FBJS.ref(this),4949752878),function(a6009294086_a4949752878_event)
     
    {a6009294086_a4949752878_FBML.closeDialogInvoked("app7146470109_moderated");},4949752878],new
     a6009294086_fbjs_event(a6009294086_event));return 
    true;},6009294086],new fbjs_event(event));return true;" value="Close" name="confirm" class="inputsubmit" type="button"></div>
                                    </div>
                                  </div>
                                  <p>
                                  <textarea name="add_comment_text" class="add_comment_text DOMControl_autogrow  DOMControl_placeholder" placeholder="Write a comment..." rows="1" cols="20">Write a comment...</textarea>
                                  <img class="UIProfileImage UIProfileImage_SMALL 
    img"><span class="comments_add_box_submit clearfix UIButton 
    UIButton_Blue UIFormButton"><input onclick="FBML.clickToShowDialog("app6009294086_moderated");fbjs_sandbox.instances.a6009294086.bootstrap();return
     
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     {a6009294086_FBML.clickToShowDialog("moderated");},6009294086],new 
    fbjs_event(event));return false;" clicktoshowdialog="moderated" value="Comment" class="UIButton_Text" name="comment" type="button"></span>
                                  </p>
                                  <div style="display: none;">
                                    <h2 class="dialog_title">Comment</h2>
                                    <div class="style="padding:">
                                      Your comment is awaiting approval.
                                    </div>
                                    <div class="dialog_buttons">
                                      <input class="inputsubmit" name="confirm" value="Close" onclick="fbjs_sandbox.instances.a6009294086.bootstrap();return 
    fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event)
     
    {a6009294086_FBML.closeDialogInvoked("app4949752878_moderated");},6009294086],new
     fbjs_event(event));return true;" type="button"></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>