Class: FacebookSocialPlugins::Plugin::Registration
- Defined in:
- lib/facebook-social_plugins/plugin/registration.rb
Instance Attribute Summary collapse
-
#named_fields ⇒ Object
readonly
Returns the value of attribute named_fields.
Attributes inherited from Social
Attributes inherited from UiHelper
Instance Method Summary collapse
-
#attributes ⇒ Object
client_id Your App ID.
-
#initialize(options = {}) ⇒ Registration
constructor
<fb:registration fields=“name,birthday,gender,location,email” redirect-uri=“developers.facebook.com/tools/echo/” width=“530”> </fb:registration>.
- #plugin_class ⇒ Object
- #targets ⇒ Object
Methods inherited from Social
Constructor Details
#initialize(options = {}) ⇒ Registration
<fb:registration
fields="name,birthday,gender,location,email"
redirect-uri="https://developers.facebook.com/tools/echo/"
width="530">
</fb:registration>
11 12 13 14 |
# File 'lib/facebook-social_plugins/plugin/registration.rb', line 11 def initialize = {} super @named_fields = [:fields] end |
Instance Attribute Details
#named_fields ⇒ Object (readonly)
Returns the value of attribute named_fields.
3 4 5 |
# File 'lib/facebook-social_plugins/plugin/registration.rb', line 3 def named_fields @named_fields end |
Instance Method Details
#attributes ⇒ Object
client_id Your App ID. redirect_uri The URI that will process the signed_request. It must be prefixed by your Site URL. fields Comma separated list of Named Fields, or JSON of Custom Fields. fb_only Optional. (boolean) Only allow users to register by linking their Facebook profile. Use this if you do not have your own registration system. Default: false. fb_register Optional. (boolean) Allow users to register for Facebook during the registration process. Use this if you do not have your own registration system. Default: false. width Optional. (int) The width of the iframe in pixels. If the width is < 520 the plugin will render in a small layout. border_color Optional. The border color of the plugin. target Optional. The target of the form submission: _top (default), _parent, or _self.
28 29 30 31 32 |
# File 'lib/facebook-social_plugins/plugin/registration.rb', line 28 def attributes super.merge(:client_id => :string, :redirect_uri => :string, :fields => :string, :fb_only => :boolean, :fb_register => :boolean, :border_color => :string, :target => targets ) end |
#plugin_class ⇒ Object
16 17 18 |
# File 'lib/facebook-social_plugins/plugin/registration.rb', line 16 def plugin_class 'fb-registration' end |
#targets ⇒ Object
34 35 36 |
# File 'lib/facebook-social_plugins/plugin/registration.rb', line 34 def targets ['_top', '_parent', '_self'] end |