Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 925 Bytes

README.rst

File metadata and controls

44 lines (29 loc) · 925 Bytes

aiofb

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}'))