Skip to main content

Facebook AccountKit module for Server-side implementation. https://developers.facebook.com/docs/accountkit/

Project description

fb_accountkit

A simple python module for Facebook's AccountKit server-side implementations.

Dependencies

Installation

pip install fb-accountkit

Usage

from fb_accountkit import FBAccountKit

fbak = FBAccountKit(
    'APP_ID',
    'APP_secret',
    version='v1.1'
)

# store token (user_access_token) to response back to client.
token_info = fbak.retrieve_user_access_token('auth_code_from_client')

# to validate token, call `get_user_session()`
print(fbak.get_user_session())

# to logout the user
fbak.logout()

# to logout all sessions (account_id must be provided)
me = fbak.get_user_session()
fbak.logout_all_session(me.get('id'))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fb-accountkit, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size fb_accountkit-1.0.2-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page