exfacebook v0.0.2 Exfacebook

Exfacebook implements Graph Api:

  • Exfacebook.Api - graph calls using access token to Facebook Graph API, depends on respnse it returns decoded to JSON values.

  • Exfacebook.Config - specify api_version and http requests for hackney.

Configuration example(optional variables):

config :exfacebook,
  api_version: "v2.6",
  http_options: [recv_timeout: :infinity],
  id: "your_app_id_optional",
  secret: "your_app_secret_optiona"

Summary

Functions

batch(params, callback)

Passing prepared params for batch processing using Facebook API.

Params are coming like normal requests encoded to JSON and then Facebook emulate requests on their side:

Example:

[
  {
    "headers" => { "Content-Type" => "application/json" },
    "body" => { ... }
  }
]
get_connections(pid, id, name, params)
get_connections(api, pid, id, name, params)
get_object(pid, id, params)
get_object(api, pid, id, params)
next_page(pid, response)
next_page(api, pid, response)
prev_page(pid, response)
prev_page(api, pid, response)
start_link(options \\ [])