Sha256: 49c40129252c39bb3d398a0a3fdf5b654241c732c201a539ae26ca7ff41abf29

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 Bytes

Contents

module FacebookSocialPlugins
	class Comments < SocialPlugin
		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

4 entries across 4 versions & 1 rubygems

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