简体   繁体   English

Facebook注册-隐藏字段不返回数据

[英]Facebook Registration - hidden field does not return data

I have set up the facebook registration well, but I have problem with the hidden data. 我已经很好地设置了facebook注册,但是隐藏数据有问题。 The initial file hae the following fields: 初始文件具有以下字段:

{'name':'name'},
{'name':'email'},
{'name':'location', 'description':'Location', 'type':'hidden'},
{'name':'gender', 'description':'Gender', 'type':'hidden'},
{'name':'birthday', 'description':'Birthday', 'type':'hidden'},
....

but when a proccess the signed_request I get the hidden field empty as the following: 但是,当处理一个signed_request时,隐藏字段为空,如下所示:

[registration] => Array
 (
   [name] => Juan Perez
   [email] => jual@hotmail.com
   [location] => 
   [gender] => 
   [birthday] => 
   [password] => juan2013
   [phone] => 65656565
   [contacto] => 2
 )

Any idea what else need to be set up? 您知道还需要设置什么吗?

The issue may not be to do with your hidden fields. 问题可能与您的隐藏字段无关。 To access the user's location and birthday, additional permissions are required. 要访问用户的位置和生日,需要其他权限。 Make sure you are asking the user for the correct permissions. 确保您正在询问用户正确的权限。 Also, even with these permissions, the user may not have made this information public. 同样,即使具有这些权限,用户也可能未将此信息公开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM