Giter Club home page Giter Club logo

fblib's Introduction

fblib: Facebook Python SDK

Alternative unofficial version of Facebook Python SDK for Facebook Graph API. Based on Requests library. You can read more about the Graph API by accessing its official documentation.

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 and 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/

fblib's People

Contributors

karmadonov avatar shalakhin avatar

Watchers

Kannan S avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.