fblib-0.9.5
توضیحات
Alternative version of Facebook Python SDK
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fblib-0.9.5 |
| نام | fblib |
| نسخه کتابخانه | 0.9.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kirill Karmadonov |
| ایمیل نویسنده | kirill@live.com |
| آدرس صفحه اصلی | https://github.com/0xKirill/fblib |
| آدرس اینترنتی | https://pypi.org/project/fblib/ |
| مجوز | Copyright (c) 2012 Kirill Karmadonov. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
fblib: Facebook Python SDK
==========================
Alternative unofficial version of Facebook Python SDK for Facebook Graph API. Based on `Requests <https://github.com/kennethreitz/requests>`_ library. You can read more about the Graph API by accessing its `official documentation <https://developers.facebook.com/docs/reference/api/>`_.
Usage
-----
Basic UserAPI usage::
from fblib.core import UserAPI
api = UserAPI(<user_access_token>)
api_user = api.get_objects('me')
Basic AppAPI usage::
from fblib.core import AppAPI
api = fblib.core.AppAPI(app_id=<application_id>, app_secret=<application_key>)
app_token = app_api.get_app_access_token()
Proper usage::
from fblib.core import UserAPI
access_token = <user_access_token>
api = UserAPI(access_token)
try:
api_user = api.get_objects('me')
except fblib.core.FacebookError:
<handling exception>
Functional testing
------------------
Running tests::
python tests.py --access_token=AAACEdEose0cBANLuYDa229TKr74oI6UYZC3BTZA --app_id=390492104572701 --app_secret=5afa25cc01ea0440c340e20e2c6a8df
Contributing
------------
- check for open issues or open a fresh issue
- when commiting, use `PEP8 <http://www.python.org/dev/peps/pep-0008/>`_ and `0xCodeStyle <https://github.com/0xKirill/0xCodeStyle>`_
- write a test which shows that the bug was fixed or that the feature works as expected
- add yourself to AUTHORS
- send a pull request and wait until it will be merged
Report Issues/Bugs
------------------
For library bugs: https://github.com/0xKirill/fblib/issues
For Facebook Graph API bugs: https://developers.facebook.com/bugs
Facebook Graph API QA: http://facebook.stackoverflow.com/
نحوه نصب
نصب پکیج whl fblib-0.9.5:
pip install fblib-0.9.5.whl
نصب پکیج tar.gz fblib-0.9.5:
pip install fblib-0.9.5.tar.gz