Skip to content

Thin asyncronous Python wrapper for Facebook Graph API

License

Notifications You must be signed in to change notification settings

tehamalab/aiofb

Repository files navigation

aiofb

image

image

Documentation Status

A thin asynchronous Python wrapper for Facebook graph API.

This library requires Python 3.5+

Installation

Using pip

$ pip install aiofb

Basic usage

Example

import asyncio
import aiofb

# initialize Graph API
fb = aiofb.GraphAPI(access_token='YOUR_ACCESS_TOKEN')

# Get an event loop
loop = asyncio.get_event_loop()

# Get results
data = loop.run_until_complete(fb.get('/{some-endpoint}'))