Sha256: 170a921099bf71e87abe1941422f5dc7d4777ea18758f1f8d02ecc2231b3646c

Contents?: true

Size: 935 Bytes

Versions: 4

Compression:

Stored size: 935 Bytes

Contents

module FacebookSocialPlugins
	# <div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"></div>
	class LoginButton < SocialPlugin
		def initialize options = {}
			super
		end

		def plugin_class
			'fb-login-button'
		end

		# 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. 
		def attributes
			super.merge(:'show-faces' => :boolean, :'max-rows' => :integer, :scope => :array, :width => :integer)
		end
	end
end



Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facebook-social_plugins-0.1.3 lib/facebook-social_plugins/login_button.rb
facebook-social_plugins-0.1.2 lib/facebook-social_plugins/login_button.rb
facebook-social_plugins-0.1.1 lib/facebook-social_plugins/login_button.rb
facebook-social_plugins-0.1.0 lib/facebook-social_plugins/login_button.rb