Utilities

facepy.utils.get_extended_access_token(access_token, application_id, application_secret_key)

Get an extended OAuth access token.

Parameters:
  • access_token – A string describing an OAuth access token.
  • application_id – An integer describing the Facebook application’s ID.
  • application_secret_key – A string describing the Facebook application’s secret key.

Returns a tuple with a string describing the extended access token and a datetime instance describing when it expires.

facepy.utils.get_application_access_token(application_id, application_secret_key)

Get an OAuth access token for the given application.

Parameters:
  • application_id – An integer describing a Facebook application’s ID.
  • application_secret_key – A string describing a Facebook application’s secret key.

Previous topic

Signed requests

This Page