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:
parent
e160f95d8e
commit
c322d74fcd
4 changed files with 12 additions and 6 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.1.1
|
||||
1.1.2
|
|
@ -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
|
||||
|
|
10
lib/fb_graph2/edge/send_api.rb
Normal file
10
lib/fb_graph2/edge/send_api.rb
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue