fb:注册插件权限

时间:2011-06-22 00:20:58

标签: php facebook permissions registration

我是facebook注册插件的新手。我在facebook开发者网站上给出了注册表格的虚拟代码。但是当我通过这份注册表格注册时。它提供了离线访问权限,发送电子邮件,user_about_me。是否可以为此注册表单提供任何特定权限?

<fb:registration redirect-uri="http://developers.facebook.com/tools/echo"    
 fields='[ {"name":"name"},
   {"name":"foo","description":"Type foo","type":"text"},
{"name":"bar","description":"Type bar","type":"text"},
{"name":"facebooker","description":"Pick Paul","type":"select","options":
 {"coder":"Paul","pm":"Austin","partners":"Cat"}},
{"name":"check","description":"Check this","type":"checkbox"},
{"name":"date","description":"Dec 16 2010","type":"date"},
{"name":"city","description":"Calgary","type":"typeahead","categories":
  ["city"]}]' 
onvalidate="validate"></fb:registration>      

我在facebook registration page

中使用的代码

2 个答案:

答案 0 :(得分:2)

fields="name,birthday,gender,location,email" 

-

<fb:registration 
  fields="name,birthday,gender,location,email" 
  redirect-uri="http://developers.facebook.com/tools/echo/"
  width="530">
</fb:registration>

http://developers.facebook.com/docs/plugins/registration/

和权限列表:http://developers.facebook.com/docs/authentication/permissions/

答案 1 :(得分:0)

如果您需要超出可用字段的权限,则需要将用户重定向到OAuth对话框,并正确设置范围参数。

请参阅https://developers.facebook.com/docs/authentication/

相关问题