问题描述
|
我是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\",{\"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注册页面使用的代码
解决方法
fields=\"name,birthday,gender,location,email\"
-
<fb:registration
fields=\"name,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/
, 如果您需要超出可用字段的权限,则需要将用户重定向到正确设置范围参数的OAuth对话框。
参见https://developers.facebook.com/docs/authentication/