Sha256: 2790e7337dd91d061b70f3b538152fdb49e547dc73a592e5f8229922a73eef50

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

module FBGraph
  
  class Authorization
    
    def initialize(client)
      @client = client
    end
    
    def authorize_url(params = {})
      @client.oauth_client.web_server.authorize_url(params)
    end
    

    def process_callback(code, options = {})
      @client.consumer = @client.oauth_client.web_server.get_access_token(code, options)
      @client.access_token = @client.consumer.token
    end

  end  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fbgraph-0.1.1 lib/fbgraph/authorization.rb
fbgraph-0.0.9 lib/fbgraph/authorization.rb
fbgraph-0.0.8 lib/fbgraph/authorization.rb
fbgraph-0.0.5 lib/fbgraph/authorization.rb
fbgraph-0.0.4 lib/fbgraph/authorization.rb
fbgraph-0.0.2 lib/fbgraph/authorization.rb