Module: AuthlogicFacebook::Session::Config
- Defined in:
- lib/authlogic_facebook/session.rb
Instance Method Summary collapse
-
#facebook_api_key(value = nil) ⇒ Object
(also: #facebook_api_key=)
REQUIRED.
-
#facebook_auto_register(value = true) ⇒ Object
(also: #facebook_auto_register=)
Should a new user be automatically created if there is no user with given facebook uid?.
-
#facebook_finder(value = nil) ⇒ Object
(also: #facebook_finder=)
What method should be used to find the facebook account?.
-
#facebook_permissions(value = nil) ⇒ Object
(also: #facebook_permissions=)
What extended permissions should be requested from the user?.
-
#facebook_secret_key(value = nil) ⇒ Object
(also: #facebook_secret_key=)
REQUIRED.
-
#facebook_uid_field(value = nil) ⇒ Object
(also: #facebook_uid_field=)
What user field should be used for the facebook UID?.
Instance Method Details
#facebook_api_key(value = nil) ⇒ Object Also known as: facebook_api_key=
REQUIRED
Specify your api_key.
-
Default:
nil -
Accepts:
String
17 18 19 |
# File 'lib/authlogic_facebook/session.rb', line 17 def facebook_api_key(value=nil) rw_config(:facebook_api_key, value, nil) end |
#facebook_auto_register(value = true) ⇒ Object Also known as: facebook_auto_register=
Should a new user be automatically created if there is no user with given facebook uid?
-
Default:
false -
Accepts:
Boolean
65 66 67 |
# File 'lib/authlogic_facebook/session.rb', line 65 def facebook_auto_register(value=true) rw_config(:facebook_auto_register, value, false) end |
#facebook_finder(value = nil) ⇒ Object Also known as: facebook_finder=
What method should be used to find the facebook account?
-
Default:
:find_by_##facebook_uid_field -
Accepts:
Symbol or String
46 47 48 |
# File 'lib/authlogic_facebook/session.rb', line 46 def facebook_finder(value=nil) rw_config(:facebook_finder, value, nil) end |
#facebook_permissions(value = nil) ⇒ Object Also known as: facebook_permissions=
What extended permissions should be requested from the user?
-
Default:
[] -
Accepts:
Array of Strings
55 56 57 |
# File 'lib/authlogic_facebook/session.rb', line 55 def (value=nil) rw_config(:facebook_permissions, value, []) end |
#facebook_secret_key(value = nil) ⇒ Object Also known as: facebook_secret_key=
REQUIRED
Specify your secret_key.
-
Default:
nil -
Accepts:
String
28 29 30 |
# File 'lib/authlogic_facebook/session.rb', line 28 def facebook_secret_key(value=nil) rw_config(:facebook_secret_key, value, nil) end |
#facebook_uid_field(value = nil) ⇒ Object Also known as: facebook_uid_field=
What user field should be used for the facebook UID?
-
Default:
:facebook_uid -
Accepts:
Symbol
37 38 39 |
# File 'lib/authlogic_facebook/session.rb', line 37 def facebook_uid_field(value=nil) rw_config(:facebook_uid_field, value, :facebook_uid) end |