gpt4 book ai didi

php - facebook,如何验证注册表?

转载 作者:行者123 更新时间:2023-11-30 18:39:20 25 4
gpt4 key购买 nike

我正在尝试对 Facebook Registration Plugin 进行一些验证

我正在使用这段代码:

<?php
$fields = json_encode(array(
array('name' => 'name'),
array('name' => 'first_name'),
array('name' => 'last_name'),
array('name' => 'birthday'),
array('name' => 'email'),
array('name' => 'address', 'description' => 'Address', 'type' => 'text'),
array('name' => 'zipcode', 'description' => 'Zip Code', 'type' => 'text'),
array('name' => 'phone', 'description' => 'Phone Number', 'type' => 'text')
));

?>
<div style="display: none;">
<div id="reg_istration" style="width:640px;height:auto;overflow:auto;">
<iframe class="facebook-login" src="http://www.facebook.com/plugins/registration.php?
client_id=153230661424821&
redirect_uri=http://www.xxx.com/xxx.php?&
fields=<?php echo urlencode($fields);?>"
scrolling="auto"
frameborder="no"
style="border:none"
allowTransparency="true"
width="100%"
height="330">
</iframe>
</div>
</div>

我不确定如何将验证代码应用到此代码。

有什么想法吗?

谢谢

最佳答案

尝试使用插件的 XFMBL 版本。

来自Registration Advanced Uses页:

If you want to add validation to any of your fields during registration, you must use the XFBML version of the plugin, since the iframe can't do cross domain communication.

关于php - facebook,如何验证注册表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7314653/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com