Method: Koala::Facebook::GraphAPIMethods#put_wall_post
- Defined in:
- lib/koala/api/graph_api_methods.rb
#put_wall_post(message, attachment = {}, target_id = "me", options = {}, &block) ⇒ Object
Write directly to the user’s wall. Convenience method equivalent to put_connections(id, “feed”).
To get wall posts, use get_connections(user, “feed”) To delete a wall post, use delete_object(post_id)
288 289 290 291 292 293 294 |
# File 'lib/koala/api/graph_api_methods.rb', line 288 def put_wall_post(, = {}, target_id = "me", = {}, &block) if properties = .delete(:properties) || .delete("properties") properties = JSON.dump(properties) if properties.is_a?(Hash) || properties.is_a?(Array) ["properties"] = properties end put_connections(target_id, "feed", .merge({:message => }), , &block) end |