Class Facebooker::FacebookAdapter
In: lib/facebooker/adapters/facebook_adapter.rb
Parent: AdapterBase

Methods

Public Instance methods

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 26
    def api_key
      ENV['FACEBOOK_API_KEY'] || super      
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 22
    def api_rest_path
      "/restserver.php"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 10
    def api_server_base
       "api.facebook.com"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 6
    def canvas_server_base
      "apps.facebook.com"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 48
    def connect_permission_url_base
      "http://#{www_server_base_url}/connect/prompt_permissions.php?api_key=#{api_key}&v=1.0"      
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 44
    def install_url_base
      "http://#{www_server_base_url}/install.php?api_key=#{api_key}&v=1.0"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 34
    def is_for?(application_context)
      application_context == :facebook
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 40
    def login_url_base
      "http://#{www_server_base_url}/login.php?api_key=#{api_key}&v=1.0"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 52
    def permission_url_base
      "http://#{www_server_base_url}/authorize.php?api_key=#{api_key}&v=1.0"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 30
    def secret_key
      ENV['FACEBOOK_SECRET_KEY'] || super
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 14
    def video_server_base
      "api-video.facebook.com"
    end

[Source]

# File lib/facebooker/adapters/facebook_adapter.rb, line 18
    def www_server_base_url
      "www.facebook.com"
    end

[Validate]