Method: Facebooker::Session#register_template_bundle
- Defined in:
- lib/facebooker/session.rb
#register_template_bundle(one_line_story_templates, short_story_templates = nil, full_story_template = nil, action_links = nil) ⇒ Object
Register a template bundle with Facebook. returns the template id to use to send using this template
358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/facebooker/session.rb', line 358 def register_template_bundle(one_line_story_templates,short_story_templates=nil,full_story_template=nil, action_links=nil) parameters = {:one_line_story_templates => Array(one_line_story_templates).to_json} parameters[:action_links] = action_links.to_json unless action_links.blank? parameters[:short_story_templates] = Array(short_story_templates).to_json unless short_story_templates.blank? parameters[:full_story_template] = full_story_template.to_json unless full_story_template.blank? post("facebook.feed.registerTemplateBundle", parameters, false) end |