pyfaceb

Full-featured, lightweight Facebook API wrapper for Graph & FQL
Download

pyfaceb Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Kevin Stanton
  • Publisher web site:
  • https://bitbucket.org/sproutsocial/

pyfaceb Tags


pyfaceb Description

pyfaceb is a Python library that was started because most of the existing libraries out there (pyfacebook, facepy, facebook python-sdk) are either no longer in development, use the old REST API, or are lacking in support of the more advanced features available, such as batch querying and FQL support.PurposeA lightweight Python wrapper for the Facebook Graph API and Facebook Query Language (FQL) interface.Supports basic and advanced features of the Graph API, including batched API queries, optionally with multiple access_token's.Basic Usage Examples fbg = FBGraph('access-token') me = fbg.get('me') # prints your first name print me # prints out the name of all your likes my_likes = fbg.get('me', 'likes') for like in my_likes: print like # make a request with parameters... my_first_3_likes = fbg.get('me', 'likes', {'limit': 3}) # get an object by it's ID #: facebook_platform_page = fbg.get('19292868552')Batched Query Examples # batched queries with a single access token fbg = FBGraph('access-token') # you can write it manually if you like... results = fbg.get_batch() # or use the GetRequestFactory batch = fbg.get_batch(batch) # If you need to use multiple access tokens in # one batch call, you can! # Note, you still must specify a "fallback" token when you create an # instance of FBGraph() fbg.get_batch()Product's homepage


pyfaceb Related Software