Dom 后端不存在Facebook表单帖子数据

Dom 后端不存在Facebook表单帖子数据,dom,facebook,forms,fbjs,Dom,Facebook,Forms,Fbjs,我正在尝试使用Facebook将表单数据发布到我的应用程序。我的表单集成了一个对话框,我正在使用form.submit提交表单。请看我的密码。post数据不显示在后端,例如装载货物无线电、城市id、列车id,但fb_sig*数据显示。有人知道在Facebook上发布表单数据是否有任何警告吗?谢谢 注意:我已经尝试使用我的服务器域和我的fb回调url进行表单操作。两者都不起作用 <div id="action_prompt"> Loading cargo... </div>

我正在尝试使用Facebook将表单数据发布到我的应用程序。我的表单集成了一个对话框,我正在使用form.submit提交表单。请看我的密码。post数据不显示在后端,例如装载货物无线电、城市id、列车id,但fb_sig*数据显示。有人知道在Facebook上发布表单数据是否有任何警告吗?谢谢

注意:我已经尝试使用我的服务器域和我的fb回调url进行表单操作。两者都不起作用

<div id="action_prompt">
Loading cargo...
</div>
<fb:js_string var="fbjs_load_cargo_select">
  <div id="load_cargo_select">
    <form id="load_cargo_select_form" action="http://railsacrosseurope.com/turn/load_cargo_select" method="POST">
      <p>Your train has stopped in the city of Arhus.</p>
      <p>Arhus produces the following goods:</p>
      <ul>
                  <li>Dairy</li>
              </ul>
      <p>Your train is hauling the following goods:</p>
      <ul>
                  <li>Timber</li>
              </ul>
      <p>What would you like to do?</p>
      <input type="radio" id="load_cargo_radio" value="1">Load new goods</input>&nbsp;&nbsp;
      <input type="radio" id="load_cargo_radio" value="2">Discard existing goods</input>
      <input type="hidden" id="city_id" value="3" />
      <input type="hidden" id="train_id" value="15" />
      <input type="submit" id="submit" value="Submit" />
    </form>
  </div>
</fb:js_string>

.
.
.
<script type="text/javascript">
  var dialog = new Dialog().showChoice('Load Cargo', fbjs_load_cargo_select, 'Okay', 'Pass');
  dialog.onconfirm = function() {
    // Submit the form if it exists, then hide the dialog.
    frm = document.getElementById('load_cargo_select_form');
    if (frm) { frm.submit(); }
    dialog.hide();
  };
  dialog.oncancel = function() {
    form = document.getElementById('redirect_form');
    form.setAction('http://apps.facebook.com/rails_across_europe/turn/move_trains_auto/');
    form.submit();
  }
</script>
[/code]

问题不在于Facebook。问题是我遗漏了输入元素的name属性。

你不是说load\u cargo\u radio吗?文本中有破折号,但代码中有下划线。我尝试在文本中添加下划线,但这会产生斜体效果,因此使用破折号。但它们是一样的。