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
facebooker-lite-1.0.67.2 lib/facebooker/adapters/facebook_adapter.rb
facebooker-lite-1.0.67.1 lib/facebooker/adapters/facebook_adapter.rb
facebooker-lite-1.0.67 lib/facebooker/adapters/facebook_adapter.rb
fotonauts-facebooker-1.0.67 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.67 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.66 lib/facebooker/adapters/facebook_adapter.rb
jet-facebooker-1.0.64 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.65 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.64 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.63 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.62 lib/facebooker/adapters/facebook_adapter.rb
facebooker-fbg1-1.0.61.1 lib/facebooker/adapters/facebook_adapter.rb
facebooker-fbg-10.0.59 lib/facebooker/adapters/facebook_adapter.rb
facebooker-fbg-1.0.59a lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.61 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.60 lib/facebooker/adapters/facebook_adapter.rb
facebooker-fbg-1.0.59 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.59 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.58 lib/facebooker/adapters/facebook_adapter.rb
facebooker-1.0.56 lib/facebooker/adapters/facebook_adapter.rb