Class: FacebookSocialPlugins::Plugin::SendButton
- Defined in:
- lib/facebook-social_plugins/plugin/send_button.rb
Instance Attribute Summary
Attributes inherited from Social
Attributes inherited from UiHelper
Instance Method Summary collapse
-
#attributes ⇒ Object
href - the URL to send.
-
#initialize(options = {}) ⇒ SendButton
constructor
A new instance of SendButton.
- #plugin_class ⇒ Object
Methods inherited from Social
Constructor Details
#initialize(options = {}) ⇒ SendButton
Returns a new instance of SendButton.
3 4 5 |
# File 'lib/facebook-social_plugins/plugin/send_button.rb', line 3 def initialize = {} super end |
Instance Method Details
#attributes ⇒ Object
href - the URL to send. font - the font to display in the button. Options: ‘arial’, ‘lucida grande’, ‘segoe ui’, ‘tahoma’, ‘trebuchet ms’, ‘verdana’ colorscheme - the color scheme for the button. Options: ‘light’, ‘dark’ ref - a label for tracking referrals; must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). The ref attribute causes two parameters to be added to the referrer URL when a user clicks a link from a stream story about a Send action: fb_ref - the ref parameter fb_source - the story type (‘message’, ‘group’, ‘email’) in which the click occurred.
17 18 19 20 21 |
# File 'lib/facebook-social_plugins/plugin/send_button.rb', line 17 def attributes super.merge(:href => :string, :ref => :string, :fb_ref => :string, :fb_source => ['message', 'group', 'email'] ) end |
#plugin_class ⇒ Object
7 8 9 |
# File 'lib/facebook-social_plugins/plugin/send_button.rb', line 7 def plugin_class 'fb-send' end |