Facebooker extended permissions?

前端 未结 2 481
滥情空心
滥情空心 2021-01-21 04:02

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

2条回答
  •  粉色の甜心
    2021-01-21 04:30

    Yes

    this in your application.html.erb

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

提交回复
热议问题