Method: Facebooker::Rails::ProfilePublisherExtensions#render_publisher_interface
- Defined in:
- lib/facebooker/rails/profile_publisher_extensions.rb
#render_publisher_interface(fbml, publish_enabled = true, comment_enabled = false) ⇒ Object
render the interface for a publisher. fbml is the content in string form. Use render_to_string to get the content from a template publish_enabled controlls whether the post form is active by default. If it isn’t, you’ll need to use fbjs to activate it comment_enabled controls whether to include a comment box
16 17 18 19 |
# File 'lib/facebooker/rails/profile_publisher_extensions.rb', line 16 def render_publisher_interface(fbml,publish_enabled=true,comment_enabled=false) render :json=>{:content=>{:fbml=>fbml,:publishEnabled=>publish_enabled,:commentEnabled=>comment_enabled}, :method=>"publisher_getInterface"} end |