Sha256: 069a6cb8a5cdad5e12eeeb335072664d5ffd18a7ea1819223ad1eb392a87a6c3

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 KB

Contents

module FacebookSocialPlugins

	# The Facepile plugin displays the Facebook profile pictures of users who have connected with your 
	# page via a global or custom action, or can also be configured to display users that have 
	# signed up for your site.

	# If you want to display users who have connected to your page via an action, specify with the action parameter

	# <div class="fb-facepile" data-href="http://developers.facebook.com" 
	# 	data-action="join" data-size="large" data-max-rows="1" data-width="300" 
	# 	data-colorscheme="dark">
	# </div>	

	# To display users who have liked your page, specify the URL of your page as the href parameter. 
	# To display users who have signed up for your site, specify your application id as the app_id

	class Facepile < SocialPlugin
		def initialize options = {}
			super
		end

		def plugin_class
			'fb-facepile'
		end

		# event-app-id - the app id for the event
		# action - the action to perform, fx 'og_recipebox:planning_to_make'
		# width - the width of the plugin in pixels. Minimum recommended width: 400px.
		# href - the referenced page
		# max_rows - max rows to display, 1-10 normally
		def attributes
			super.merge(:'event-app-id' => :string, :action => :string, :href => :string, 
				:max_rows => :integer, :size => sizes, :width => :integer
			)
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facebook-social_plugins-0.1.3 lib/facebook-social_plugins/facepile.rb
facebook-social_plugins-0.1.2 lib/facebook-social_plugins/facepile.rb