Check registration on Facebook: permission to access the resource "Arbiter"

I have a problem to check my Facebook form. With user input blur, I have a message

Permission to access property

and the check is not performed.

This is my code:

<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> 

I looked through some Facebook registration tutorials, Facebook documentation and questions on this site, but I don't see solutions or similar problems ...

How to fix this problem?

+2
source share
2 answers

I could not reproduce this error. I had to make sure that redirect-uri was set to an absolute URL, add a close html tag and change the script link as the protocol below:

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

Facebook validation does not work when blurring, it works after the form is submitted. Where did you add the onblur event?

+1
source

I faced the same situation and decided to fix it using a secure site (HTTPS). It will not work in HTTP, although I provided a script link without protocols.

+3
source

Source: https://habr.com/ru/post/1389649/


All Articles