diff --git a/VERSION b/VERSION index 8cfbc90..8428158 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.1 \ No newline at end of file +1.1.2 \ No newline at end of file diff --git a/lib/fb_graph2/edge/messages.rb b/lib/fb_graph2/edge/messages.rb index 77de45a..fe0dc27 100644 --- a/lib/fb_graph2/edge/messages.rb +++ b/lib/fb_graph2/edge/messages.rb @@ -18,11 +18,6 @@ module FbGraph2 Message.new(message[:id], message).authenticate self.access_token end end - - def message!(params = {}) - message = self.post params, edge: :messages - Message.new(message[:id], params.merge(message)).authenticate self.access_token - end end end end diff --git a/lib/fb_graph2/edge/send_api.rb b/lib/fb_graph2/edge/send_api.rb new file mode 100644 index 0000000..9d7ccf6 --- /dev/null +++ b/lib/fb_graph2/edge/send_api.rb @@ -0,0 +1,10 @@ +module FbGraph2 + class Edge + module SendApi + def message!(params = {}) + message = self.post params, edge: :messages + Message.new(message[:message_id], params.merge(message)).authenticate self.access_token + end + end + end +end diff --git a/lib/fb_graph2/page.rb b/lib/fb_graph2/page.rb index 2685c5b..3160881 100644 --- a/lib/fb_graph2/page.rb +++ b/lib/fb_graph2/page.rb @@ -4,6 +4,7 @@ module FbGraph2 include Edge::Albums include Edge::Blocked include Edge::Conversations + include Edge::SendApi include Edge::Events include Edge::Feed include Edge::GlobalBrandChildren