class FacebookSocialPlugins::Plugin::Comments
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/facebook-social_plugins/plugin/comments.rb, line 3 def initialize options = {} super end
Public Instance Methods
attributes()
click to toggle source
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.
Calls superclass method
# 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_class()
click to toggle source
# File lib/facebook-social_plugins/plugin/comments.rb, line 7 def plugin_class 'fb-comments' end