Sha256: 2aeeaa2afc761eafb2386957f52b4b0a1147bb64c57ce8b8ca9cc631a48d4c40

Contents?: true

Size: 1.12 KB

Versions: 48

Compression:

Stored size: 1.12 KB

Contents

module Facebooker
  
   
  class FacebookAdapter < AdapterBase
      
    def canvas_server_base
      "apps.facebook.com"
    end
      
    def api_server_base
       "api.facebook.com"
    end
    
    def video_server_base
      "api-video.facebook.com"
    end
    
    def www_server_base_url
      "www.facebook.com"
    end
    
    def api_rest_path
      "/restserver.php"
    end
    
    def api_key
      ENV['FACEBOOK_API_KEY'] || super      
    end
    
    def secret_key
      ENV['FACEBOOK_SECRET_KEY'] || super
    end
      
    def is_for?(application_context)
      application_context == :facebook
    end
       
  
       
    def login_url_base
      "http://#{www_server_base_url}/login.php?api_key=#{api_key}&v=1.0"
    end
       
    def install_url_base
      "http://#{www_server_base_url}/install.php?api_key=#{api_key}&v=1.0"
    end

    def connect_permission_url_base
      "http://#{www_server_base_url}/connect/prompt_permissions.php?api_key=#{api_key}&v=1.0"      
    end

    def permission_url_base
      "http://#{www_server_base_url}/authorize.php?api_key=#{api_key}&v=1.0"
    end
    
  end
  
end


Version data entries

48 entries across 48 versions & 16 rubygems

Version Path
micahwedemeyer-facebooker-1.0.50 lib/facebooker/adapters/facebook_adapter.rb
micahwedemeyer-facebooker-1.0.51 lib/facebooker/adapters/facebook_adapter.rb
mmangino-facebooker-1.0.49 lib/facebooker/adapters/facebook_adapter.rb
mmangino-facebooker-1.0.50 lib/facebooker/adapters/facebook_adapter.rb
simianarmy-facebooker-1.0.50 lib/facebooker/adapters/facebook_adapter.rb
simianarmy-facebooker-1.0.51 lib/facebooker/adapters/facebook_adapter.rb
taweili-facebooker-1.0.50 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.75 lib/facebooker/adapters/facebook_adapter.rb
sentientmonkey-facebooker-1.0.74 lib/facebooker/adapters/facebook_adapter.rb
facebooker-micah-1.0.74 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.74 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.73 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.72 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.71 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.70 lib/facebooker/adapters/facebook_adapter.rb
benhutton-facebooker-1.0.69.2 lib/facebooker/adapters/facebook_adapter.rb
benhutton-facebooker-1.0.69.1 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.69 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.68 lib/facebooker/adapters/facebook_adapter.rb
cbaclig-facebooker-1.0.67.2 lib/facebooker/adapters/facebook_adapter.rb