Module: FbGraph2::Edge::OpenGraph::Actions
- Included in:
- User
- Defined in:
- lib/fb_graph2/edge/open_graph/actions.rb
Instance Method Summary collapse
Instance Method Details
#og_action!(action_type, params = {}) ⇒ Object
12 13 14 15 |
# File 'lib/fb_graph2/edge/open_graph/actions.rb', line 12 def og_action!(action_type, params = {}) action = self.post params, edge: action_type FbGraph2::OpenGraph::Action.new(action[:id], params.merge(action)).authenticate self.access_token end |
#og_actions(action_type, params = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fb_graph2/edge/open_graph/actions.rb', line 5 def og_actions(action_type, params = {}) actions = self.edge action_type, params actions.collect! do |action| FbGraph2::OpenGraph::Action.new(action[:id], action).authenticate self.access_token end end |