Class: FacebookSocialPlugins::Plugin::AddToTimeline
- 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
Attributes inherited from UiHelper
Instance Method Summary collapse
-
#attributes ⇒ Object
mode - the display mode - box (default) and button show_faces - whether to show faces.
-
#initialize(options = {}) ⇒ AddToTimeline
constructor
A new instance of AddToTimeline.
- #plugin_class ⇒ Object
Methods inherited from Social
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 = {} super end |
Instance Method Details
#attributes ⇒ Object
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_class ⇒ Object
8 9 10 |
# File 'lib/facebook-social_plugins/plugin/add_to_timeline.rb', line 8 def plugin_class 'fb-add-to-timeline' end |