Class: FacebookSocialPlugins::Plugin::AddToTimeline

Inherits:
Social show all
Defined in:
lib/facebook-social_plugins/plugin/add_to_timeline.rb

Overview

Also see AddToTimeline.txt of this gem for example of using OpenGraph with this feature.

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 = {}) ⇒ AddToTimeline

Returns a new instance of AddToTimeline.



4
5
6
# File 'lib/facebook-social_plugins/plugin/add_to_timeline.rb', line 4

def initialize options = {}
	super
end

Instance Method Details

#attributesObject

mode - the display mode - box (default) and button show_faces - whether to show faces



14
15
16
# File 'lib/facebook-social_plugins/plugin/add_to_timeline.rb', line 14

def attributes
	super.merge(:show_faces => :boolean, :mode => ['box', 'button'])
end

#plugin_classObject



8
9
10
# File 'lib/facebook-social_plugins/plugin/add_to_timeline.rb', line 8

def plugin_class
	'fb-add-to-timeline'
end