2012-07-07 46 views
0

场可选我有我的Facebook注册社交插件下面的代码:如何使faccebook注册插件

<iframe src="https://www.facebook.com/plugins/registration? 
     client_id=xxxxxxxxxxxxxxxx& 
      redirect_uri=http://www.pingxxxxxx.com/facebook_registration_plugin/fbwe/trial.php& 
      fields=[ 
{'name':'name'}, 
{'name':'email'}, 
{'name':'location'}, 
{'name':'gender'}, 
{'name':'birthday'}, 
{'name':'about',  'description':'About Youtself',    'type':'text'}, 
]" 
    scrolling="auto" 
    frameborder="no" 
    style="border:none" 
    allowTransparency="true" 
    width="100%" 
    height="330"> 
</iframe> 

我想要做的最后一个字段即“关于”可选用户。此字段

 {'name':'about',  'description':'About Youtself',    'type':'text'}, 

有谁能告诉我如何做到这一点吗?

+0

插件不允许你简单地将该字段留空吗? – Lix 2012-07-07 13:26:34

回答

1

要进行现场可选,您可以使用no_submit参数,如记录在这里:https://developers.facebook.com/docs/plugins/registration/advanced/

使用记载,页面上的流量,你可选字段保存到通过JavaScript验证回调的cookie。然后,当用户在通过Facebook进行认证后回到您的网站时,您可以拿起并重新关联Cookie中的数据和他们的帐户。

就我所知,发送到Facebook的每个字段都必须存在。