Facebook注册验证:拒绝访问属性“仲裁者"的权限 [英] Facebook registration validation: Permission denied to access property 'Arbiter'

查看:406
本文介绍了Facebook注册验证:拒绝访问属性“仲裁者"的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在验证我的Facebook表单时遇到问题.在自定义输入模糊时,我收到消息

I have a problem to validate my Facebook form. On custom input blur, I have the message

拒绝访问属性的权限

Permission denied to access property

并且不会进行验证.

这是我的代码:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
    <title>Home</title>
</head>
<body>
    <div id="fb-root"></div>
    <script src="https://connect.facebook.net/en_US/all.js#appId=<?php echo FACEBOOK_APP_ID; ?>&xfbml=1"></script>

    <fb:registration
        fields='[
                {"name":"name"},
                {"name":"first_name"},
                      {"name":"last_name"},
                      {"name":"gender"},
                      {"name":"company", "description":"Company", "type":"text"},
                      {"name":"address", "description":"Address", "type":"text"},
                      {"name":"zip_code", "description":"Zip Code", "type":"text"},
                      {"name":"city", "description":"City", "type":"typeahead", "categories":["city"]},
                      {"name":"phone", "description":"Phone","type":"text"},
                      {"name":"mobile_phone", "description":"Mobile Phone","type":"text"},
                      {"name":"email"},
                      {"name":"optin", "description":"I may receive communications from Fanpage Booster", "type":"checkbox", "default":"unchecked"},
                      {"name":"captcha"}
                     ]'
        redirect-uri="recup.php" width="530" fb_only="true" onvalidate="validate" >
    </fb:registration>
    <script>
        function validate(form) {
            errors = {};
            if (form.company == '') {
                errors.company = "Company can't be empty !";
            }
            if (form.address == '') {
                errors.address = "Address can't be empty !";
            }
            if (form.zip_code == '') {
                errors.zip_code = "Zip Code can't be empty !";
            }
            return errors;
        }
    </script>
</body>

我看了一些有关Facebook注册的教程,Facebook文档以及该站点上的问题,但是我没有看到解决方案或类似问题...

I took a look at some tutorials on Facebook registration, at Facebook documentation, and questions on this site, but I don't see solutions or a similar problem ...

如何解决此问题?

推荐答案

我无法重现该错误.我确实必须确保将redirect-uri设置为绝对URL,添加一个关闭html标签,并将脚本引用更改为协议,例如:

I wasn't able to reproduce that error. I did have to make sure redirect-uri was set to an absolute URL, add a close html tag, and change the script reference to be protocol less like:

<script src="//connect.facebook.net/en_US/all.js#appId=APPID&xfbml=1"></script>  

Facebook验证不适用于模糊处理,一旦提交表单即可使用.您在哪里添加了onblur事件?

The Facebook validation doesn't work on blur, it works once the form gets submitted. Where were you adding an onblur event?

这篇关于Facebook注册验证:拒绝访问属性“仲裁者"的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆