我在《The Sims Social》应用中看到请求对话框上有一个复选框选项,上面写着:“在将《The Sims Social》请求发送给
我尚未在 Facebook API 文档中找到此功能,我想知道如何在我的应用程序上启用它。
最佳答案
弗拉维亚
引用http://developers.facebook.com/docs/plugins/registration/#custom_fields 您应该能够指定您希望包含的任何自定义字段。
{"name":"the-name", "description": "the-description", "type": "option-type"}
或者如果有选项。
{"name":"the-name", "description": "the-description", "type": "option-type", "options": {"name":"value","name":"value"}}
<fb:registration redirect-uri="https://developers.facebook.com/tools/echo"
fields='[
{"name":"name"},
{"name":"foo","description":"Type foo","type":"text"},
{"name":"bar","description":"Type bar","type":"text"},
{"name":"facebooker","description":"Pick Paul","type":"select","options": {"coder":"Paul","pm":"Austin","partners":"Cat"}}]'
onvalidate="validate"></fb:registration>
关于checkbox - 请求对话框复选框选项 "don' 发送前询问...”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7196325/