Skip to content

Latest commit

 

History

History
executable file
·
39 lines (28 loc) · 1.55 KB

README.md

File metadata and controls

executable file
·
39 lines (28 loc) · 1.55 KB

Django Facebook Graph API Ads

PyPI version Build Status Coverage Status

Application for interacting with Facebook Graph API Pages objects using Django model interface

Installation

pip install django-facebook-pages

Add into settings.py lines:

INSTALLED_APPS = (
    ...
    'oauth_tokens',
    'facebook_api',
    'facebook_ads',
)

# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True                                        # to keep in DB expired access tokens
OAUTH_TOKENS_FACEBOOK_CLIENT_ID = ''                               # application ID
OAUTH_TOKENS_FACEBOOK_CLIENT_SECRET = ''                           # application secret key
OAUTH_TOKENS_FACEBOOK_SCOPE = ['offline_access']                   # application scopes
OAUTH_TOKENS_FACEBOOK_USERNAME = ''                                # user login
OAUTH_TOKENS_FACEBOOK_PASSWORD = ''                                # user password

Usage examples

...

Licensing

This library uses the Apache License, version 2.0. Please see the library's individual files for more information.