class Koala::Configuration

Global configuration for Koala.

Attributes

access_token[RW]

The default access token to be used if none is otherwise supplied.

api_version[RW]

The default API version to use if none is otherwise specified.

app_access_token[RW]

The default app access token to be used if none is otherwise supplied.

app_id[RW]

The default application ID to use if none is otherwise supplied.

app_secret[RW]

The default app secret value to be used if none is otherwise supplied.

beta_replace[RW]
dialog_host[RW]

The server to use when constructing dialog URLs.

graph_server[RW]

The server to use for Graph API requests

host_path_matcher[RW]

Certain Facebook services (beta, video) require you to access different servers. If you're using your own servers, for instance, for a proxy, you can change both the matcher (what value to change when updating the URL) and the replacement values (what to add).

So, for instance, to use the beta stack, we match on .facebook and change it to .beta.facebook. If you're talking to fbproxy.mycompany.com, you could set up beta.fbproxy.mycompany.com for FB's beta tier, and set the matcher to /.fbproxy/ and the beta_replace to '.beta.fbproxy'.

oauth_callback_url[RW]

The default value to use for the oauth_callback_url if no other is provided.

preserve_form_arguments[RW]

Whether to preserve arrays in arguments, which are expected by certain FB APIs (see the ads API in particular, developers.facebook.com/docs/marketing-api/adgroup/v2.4)

video_replace[RW]

Public Class Methods

new() click to toggle source
   # File lib/koala/configuration.rb
43 def initialize
44   # Default to our default values.
45   Koala::HTTPService::DEFAULT_SERVERS.each_pair do |key, value|
46     self.public_send("#{key}=", value)
47   end
48 end