ruby on rails - extended permissions in authlogic facebooker plugin? -


How does a request allow extended? Adding one: the key to be done in the hash

  & lt;% # = authlogic_facebook_login_button: text = & gt; 'Login with Facebook' ,: v = & gt; 2 ,: perms = & gt; "Email, user_index"%>  

to FBML

  & lt; Form id = 'connect_to_facebook_form' method = 'post' verb = '/ user_session' & gt; The reason for submission is as follows. & Lt; Input type = 'hidden' name = 'authentication_token' value = 'code here' /> & Lt; / Form & gt; & Lt; Script type = 'text / javascript' charset = 'utf-8' & gt; Function connect_to_facebook () {$ ('connect_to_facebook_form'). Submit (); } & Lt; / Script & gt; & Lt; Fb: login-button js = "prototype" onlogin = "connect_to_facebook ()" perms = "email, user_birthday" v = "2" & gt; Login with Facebook & lt; / Fb: login-button & gt;  

But by clicking on the button vanilla works no-extension-permission popup, so the form submission is not clearly picking the login-button permit key-value pair.

Thank you.

[edit]: In fact, more odd behavior to report. No: The perms element calls popups only to "basic information", in which: perms element, along with: perms => "nonsense_key", popup says "basic information + email".

Obviously this is the init_fb_connect tag .

  & lt;% = Init_fb_connect "XFBML", {: app_settings = & gt; "{PermsToRequestOnConnect: 'email'}"}%>  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -