Module: FbGraph2::Edge::SendApi

Included in:
Page
Defined in:
lib/fb_graph2/edge/send_api.rb

Instance Method Summary collapse

Instance Method Details

#message!(params = {}) ⇒ Object



4
5
6
7
# File 'lib/fb_graph2/edge/send_api.rb', line 4

def message!(params = {})
  message = self.post params, edge: :messages
  Message.new(message[:message_id], params.merge(message)).authenticate self.access_token
end