Facebooker extended permissions?

浪子不回头ぞ 提交于 2019-12-31 01:51:33

问题


Facebook gives access to users' emails via the extended permission.

There's also a way in JS and PHP to force users to grant the permission when they accept the app's TOS - http://wiki.developers.facebook.com/index.php/Extended_permissions

Is there a way that I can do this with Facebooker?

Regards..


回答1:


You can do it just like that :

:jquery , :app_settings => " { permsToRequestOnConnect : 'email' }"} %> 'facebook') + '\'') %>

Note: Also get the last version of facebooker, because previus version dont support extended permissions.




回答2:


Yes

this in your application.html.erb

<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load("jquery", "1.4.2");
</script>

<%= fb_connect_javascript_tag %> 
<%= init_fb_connect "XFBML", {:js => :jquery , :app_settings =>  " { permsToRequestOnConnect : 'publish_stream' }"} %>

and this in your viewtamplate

<%= fb_login_button 'window.location = "/nextview";', :size => :medium, :length => :long, :v => 2 %> 


来源:https://stackoverflow.com/questions/2526940/facebooker-extended-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!