Sha256: 370176d8253899a0d3d69c4c9918a5f8e6c9cc8673864e94575826e3c6c62c1f
Contents?: true
Size: 614 Bytes
Versions: 4
Compression:
Stored size: 614 Bytes
Contents
module FbGraph module Connections module Links def links(options = {}) links = FbGraph::Collection.new(get(options.merge(:connection => 'links'))) links.map! do |link| Link.new(link.delete(:id), link.merge( :access_token => options[:access_token] || self.access_token )) end end def link!(options = {}) link = post(options.merge(:connection => 'links')) Link.new(link.delete(:id), options.merge(link).merge( :access_token => options[:access_token] || self.access_token )) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems