Facebook.long_lived_access_token

You're seeing just the function long_lived_access_token, go back to Facebook module for more information.
Link to this function

long_lived_access_token(client_id, client_secret, access_token)

View Source

Specs

long_lived_access_token(client_id(), client_secret(), access_token()) :: resp()

Exchange a short lived access token for a long lived one

Examples

iex> Facebook.long_lived_access_token("client_id", "client_secret", "access_token")
{:ok, %{
  "access_token" => access_token,
  "expires_in" => 5183976,
  "token_type" => "bearer"
}}

See: https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension