Class: FacebookSocialPlugins::Plugin::LoginButton
- Defined in:
- lib/facebook-social_plugins/plugin/login_button.rb
Instance Attribute Summary
Attributes inherited from Social
Attributes inherited from UiHelper
Instance Method Summary collapse
-
#attributes ⇒ Object
show-faces - specifies whether to show faces underneath the Login button.
-
#initialize(options = {}) ⇒ LoginButton
constructor
A new instance of LoginButton.
- #plugin_class ⇒ Object
Methods inherited from Social
Constructor Details
#initialize(options = {}) ⇒ LoginButton
Returns a new instance of LoginButton.
3 4 5 |
# File 'lib/facebook-social_plugins/plugin/login_button.rb', line 3 def initialize = {} super end |
Instance Method Details
#attributes ⇒ Object
show-faces - specifies whether to show faces underneath the Login button. width - the width of the plugin in pixels. Default width: 200px. max-rows - the maximum number of rows of profile pictures to display. Default value: 1. scope - a comma separated list of extended permissions. By default the Login button prompts users for their public information.
If your application needs to access other parts of the user's profile that may be
private, your application can request extended permissions.
18 19 20 |
# File 'lib/facebook-social_plugins/plugin/login_button.rb', line 18 def attributes super.merge(:'show-faces' => :boolean, :'max-rows' => :integer, :scope => :array, :width => :integer) end |
#plugin_class ⇒ Object
7 8 9 |
# File 'lib/facebook-social_plugins/plugin/login_button.rb', line 7 def plugin_class 'fb-login-button' end |