mirror of
https://github.com/nov/fb_graph2
synced 2023-03-27 23:22:15 -04:00
Merge pull request #131 from scicco/master
moving POST /messages under Page for SendAPI support
This commit is contained in:
commit
b214b38b4d
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
|
Message.new(message[:id], message).authenticate self.access_token
|
||||||
end
|
end
|
||||||
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
|
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::Albums
|
||||||
include Edge::Blocked
|
include Edge::Blocked
|
||||||
include Edge::Conversations
|
include Edge::Conversations
|
||||||
|
include Edge::SendApi
|
||||||
include Edge::Events
|
include Edge::Events
|
||||||
include Edge::Feed
|
include Edge::Feed
|
||||||
include Edge::GlobalBrandChildren
|
include Edge::GlobalBrandChildren
|
||||||
|
|
Loading…
Reference in a new issue