Method: FbGraph::Album#picture_with_access_token

Defined in:
lib/fb_graph/album.rb

#picture_with_access_token(options_or_size = {}) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/fb_graph/album.rb', line 45

def picture_with_access_token(options_or_size = {})
  response = picture_without_access_token options_or_size
  if response.is_a?(FbGraph::Picture)
    response
  else
    _endpoint_ = URI.parse response
    if self.access_token
      _endpoint_.query = [_endpoint_.query, {:access_token => self.access_token.to_s}.to_query].compact.join('&')
    end
    _endpoint_.to_s
  end
end