Sha256: f717f8737278e584ea9e2e793a1cdedd90945f112874521390e953e66b01718a

Contents?: true

Size: 1.05 KB

Versions: 15

Compression:

Stored size: 1.05 KB

Contents

module FbGraph
  class Application < Node
    include Connections::Albums
    include Connections::Events
    include Connections::Feed
    include Connections::Insights
    include Connections::Links
    include Connections::Notes
    include Connections::Payments
    include Connections::Photos
    include Connections::Picture
    include Connections::Posts
    include Connections::Statuses
    include Connections::Subscriptions
    include Connections::Tagged
    include Connections::TestUsers
    include Connections::Videos

    attr_accessor :name, :description, :category, :link, :secret

    def initialize(client_id, attributes = {})
      super
      @name         = attributes[:name]
      @description  = attributes[:description]
      @category     = attributes[:category]
      @link         = attributes[:link]
      @secret       = attributes[:secret]
    end

    def get_access_token(secret = nil)
      self.secret ||= secret
      auth = Auth.new(self.identifier, self.secret)
      self.access_token = auth.client.access_token!
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fb_graph-1.8.5 lib/fb_graph/application.rb
fb_graph-1.8.4 lib/fb_graph/application.rb
fb_graph-1.8.3 lib/fb_graph/application.rb
fb_graph-1.8.2 lib/fb_graph/application.rb
fb_graph-1.8.1 lib/fb_graph/application.rb
fb_graph-1.8.0 lib/fb_graph/application.rb
fb_graph-1.8.0.alpha2 lib/fb_graph/application.rb
fb_graph-1.7.5 lib/fb_graph/application.rb
fb_graph-1.8.0.alpha lib/fb_graph/application.rb
fb_graph-1.7.4 lib/fb_graph/application.rb
fb_graph-1.7.3 lib/fb_graph/application.rb
fb_graph-1.7.2 lib/fb_graph/application.rb
fb_graph-1.7.1 lib/fb_graph/application.rb
fb_graph-1.7.0 lib/fb_graph/application.rb
fb_graph-1.7.0.alpha2 lib/fb_graph/application.rb