Sha256: 2b5fb79a734c541bb50476e02c06f6766b127440f895afa2dc083066bc0d98e9

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 Bytes

Contents

module FbGraph2
  class Edge
    module OpenGraph
      module Actions
        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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fb_graph2-0.8.0 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.9 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.8 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.7 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.6 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.5 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.4 lib/fb_graph2/edge/open_graph/actions.rb
fb_graph2-0.7.3 lib/fb_graph2/edge/open_graph/actions.rb