我在實施Facebook註冊工具時遇到問題。 我已經按照在Facebook上的文檔中描述的步驟,這裏是我的代碼:實施Facebook註冊工具 - 錯誤
<iframe src="http://www.facebook.com/plugins/registration.php?
client_id=ID&
redirect_uri=redirect_url&
fields= [
{'name':'name'},
{'name':'email'},
{'name':'location'},
{'name':'gender'},
{'name':'birthday'},
{'name':'password', 'view':'not_prefilled'},
{'name':'like', 'description':'Do you like this plugin?', 'type':'checkbox', 'default':'checked'},
{'name':'phone', 'description':'Phone Number', 'type':'text'},
{'name':'anniversary','description':'Anniversary', 'type':'date'},
{'name':'captain', 'description':'Best Captain', 'type':'select', 'options':{'P':'Jean-Luc Picard','K':'James T. Kirk'}},
{'name':'force', 'description':'Which side?', 'type':'select', 'options':{'jedi':'Jedi','sith':'Sith'}, 'default':'sith'},
{'name':'live', 'description':'Best Place to Live', 'type':'typeahead', 'categories':['city','country','state_province']},
{'name':'captcha'}
]
" scrolling="auto" frameborder="no" style="border: none" allowtransparency="true" width="100%"
height="330"></iframe>
我正與此錯誤消息面對:
未知的名稱:「[{」名「:」名'}'。從CSV切換到JSON以使用自定義字段,或檢查拼寫正確的字段。
任何幫助將非常感激
Thnx :)。我會嘗試使用JSON對象 – MIlena