1
0
Fork 0
mirror of https://github.com/nov/fb_graph2 synced 2023-03-27 23:22:15 -04:00

moving POST /messages under page for SendAPI support

This commit is contained in:
scicco 2020-06-24 12:19:58 +02:00
parent e160f95d8e
commit c322d74fcd
4 changed files with 12 additions and 6 deletions

View file

@ -1 +1 @@
1.1.1
1.1.2

View file

@ -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

View file

@ -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

View file

@ -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