Representation of a templatized action to be published into a user’s news feed
# File lib/facebooker/feed.rb, line 52 def convert_json(hash_or_string) (hash_or_string.is_a?(Hash) and hash_or_string.respond_to?(:to_json)) ? hash_or_string.to_json : hash_or_string end
# File lib/facebooker/feed.rb, line 41 def to_params raise "Must set title_template" if self.title_template.nil? { :page_actor_id => page_actor_id, :title_template => title_template, :title_data => convert_json(title_data), :body_template => body_template, :body_data => convert_json(body_data), :body_general => body_general, :target_ids => target_ids }.merge image_params end