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