Class: FacebookSocialPlugins::Plugin::Comments

Inherits:
Social show all
Defined in:
lib/facebook-social_plugins/plugin/comments.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 = {}) ⇒ Comments

Returns a new instance of Comments.



3
4
5
# File 'lib/facebook-social_plugins/plugin/comments.rb', line 3

def initialize options = {}
	super
end

Instance Method Details

#attributesObject

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.



16
17
18
# File 'lib/facebook-social_plugins/plugin/comments.rb', line 16

def attributes
	super.merge(:href => :string, :num_posts => :integer, :mobile => :boolean, :width => :integer)
end

#plugin_classObject



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

def plugin_class
	'fb-comments'
end