django-facebook-api 0.6.3
pip install django-facebook-api==0.6.3
Newer version available (0.6.8)
Released:
Django implementation for Facebook Graph API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: ramusus
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Django Facebook Graph API
=========================
[](http://badge.fury.io/py/django-facebook-api) [](https://travis-ci.org/ramusus/django-facebook-api) [](https://coveralls.io/r/ramusus/django-facebook-api)
Application for interacting with Facebook Graph API objects using Django model interface
Installation
------------
pip install django-facebook-api
Add into `settings.py` lines:
INSTALLED_APPS = (
...
'oauth_tokens',
'facebook-api',
)
# 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
--------------
### Simple API Graph request
>>> from facebook_api.api import api_call
>>> api_call('4')
{u'first_name': u'Mark',
u'id': u'4',
u'last_name': u'Zuckerberg',
u'link': u'https://www.facebook.com/app_scoped_user_id/10101334100533631/',
u'name': u'Mark Zuckerberg',
u'updated_time': u'2015-09-29T14:42:17+0000'}
>>> api_call('4', fields='id,name')
{u'id': u'4', u'name': u'Mark Zuckerberg'}
Licensing
---------
This library uses the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
Please see the library's individual files for more information.
=========================
[](http://badge.fury.io/py/django-facebook-api) [](https://travis-ci.org/ramusus/django-facebook-api) [](https://coveralls.io/r/ramusus/django-facebook-api)
Application for interacting with Facebook Graph API objects using Django model interface
Installation
------------
pip install django-facebook-api
Add into `settings.py` lines:
INSTALLED_APPS = (
...
'oauth_tokens',
'facebook-api',
)
# 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
--------------
### Simple API Graph request
>>> from facebook_api.api import api_call
>>> api_call('4')
{u'first_name': u'Mark',
u'id': u'4',
u'last_name': u'Zuckerberg',
u'link': u'https://www.facebook.com/app_scoped_user_id/10101334100533631/',
u'name': u'Mark Zuckerberg',
u'updated_time': u'2015-09-29T14:42:17+0000'}
>>> api_call('4', fields='id,name')
{u'id': u'4', u'name': u'Mark Zuckerberg'}
Licensing
---------
This library uses the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
Please see the library's individual files for more information.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: ramusus
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-facebook-api-0.6.3.tar.gz
.
File metadata
- Download URL: django-facebook-api-0.6.3.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b070bd08c89aa8f3e31180909a5f73b68145b424a63f55d0de854546894057e6
|
|
MD5 |
e4cdcfb58504288419c0421fb7ee3516
|
|
BLAKE2b-256 |
029f8f149691fecfd561137278e886c6902e2bf9167f2e634d97cec5225c9980
|