我对此有一些问题。首先,iframe 只会呈现“名称”字段,而不会呈现其他字段,即使是那些不是自定义的字段。我读到 fb:registraiton 标记可能更适合用于自定义字段,但我不知道如何使其工作,因为我找不到使用自定义字段的任何示例。这是我的代码:
<iframe src="https://www.facebook.com/plugins/registration?
client_id=39672055*******&
redirect_uri=http://mydomain.com/signedRequest.php&fb_only=true&fields="[
{'name':'name'}, //only the name field will render
{'name':'email'},
{'name':'location'},
{'name':'gender'},
{'name':'password'},
{'name':'neighborhood','description':'In What Neighborhood Do you Live?','type':'text', 'view':'prefilled'}
]"
scrolling="auto"
frameborder="no"
style="border:none"
allowTransparency="true"
width="100%"
height="330">
</iframe>