Method: Facebooker::User#prepare_publish_to_options
- Defined in:
- lib/facebooker/models/user.rb
#prepare_publish_to_options(target, options) ⇒ Object
Prepares options for the stream.publish
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/facebooker/models/user.rb', line 152 def (target, ) opts = {:uid => self.id, :target_id => target.id, :message => [:message]} if a = [:attachment] opts[:attachment] = (a) end if (links = [:action_links] && Facebooker.json_encode([:action_links])) opts[:action_links] = links end unless [:uid].nil? opts[:uid] = [:uid] end if [:post_as_page] opts.delete(:target_id) end opts end |