Class: FacebookSocialPlugins::Plugin::LoginButton

Inherits:
Social show all
Defined in:
lib/facebook-social_plugins/plugin/login_button.rb

Instance Attribute Summary

Attributes inherited from Social

#options

Attributes inherited from UiHelper

#html, #javascript

Instance Method Summary collapse

Methods inherited from Social

#render, #validate!

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 options = {}
	super
end

Instance Method Details

#attributesObject

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_classObject



7
8
9
# File 'lib/facebook-social_plugins/plugin/login_button.rb', line 7

def plugin_class
	'fb-login-button'
end