Sha256: b9daac66f518c689f4ce189e68224c95a58c856f059ab115373bfc16b46e0fd4

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 Bytes

Contents

module FacebookSocialPlugins::Plugin
	class Comments < Social
		def initialize options = {}
			super
		end

		def plugin_class
			'fb-comments'
		end

		# href - the URL for this Comments plugin. News feed stories on Facebook will link to this URL.
		# width - the width of the plugin in pixels. Minimum recommended width: 400px.
		# colorscheme - the color scheme for the plugin. Options: 'light', 'dark'
		# num_posts - the number of comments to show by default. Default: 10. Minimum: 1
		# mobile - whether to show the mobile-optimized version. Default: auto-detect.
		def attributes
			super.merge(:href => :string, :num_posts => :integer, :mobile => :boolean, :width => :integer)
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facebook-social_plugins-0.2.2 lib/facebook-social_plugins/plugin/comments.rb
facebook-social_plugins-0.2.1 lib/facebook-social_plugins/plugin/comments.rb
facebook-social_plugins-0.2.0 lib/facebook-social_plugins/plugin/comments.rb