Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    pyfaceb 0.2.3

    Download button

    No screenshots available
    Downloads: 178  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kevin Stanton | More programs
    Other/Proprietary Li... / FREE
    August 30th, 2012, 13:48 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    pyfaceb description

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

    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.

    Purpose

    A 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['first_name']
        
        # prints out the name of all your likes
        my_likes = fbg.get('me', 'likes')
        for like in my_likes['data']:
            print like['name']
        
        # 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([
            {'method': 'GET', 'relative_url': 'me'},
            {'method': 'GET', 'relative_url': 'me/friends?limit=50'}
        ])

        # or use the GetRequestFactory
        batch = [GetRequestFactory('me'), GetRequestFactory('me/friends', limit=50)]
        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([
            GetRequestFactory('PAGE1_FB_OBJ_ID', access_token=PAGE1_ACCESS_TOKEN),
            GetRequestFactory('PAGE2_FB_OBJ_ID', access_token=PAGE2_ACCESS_TOKEN),
            GetRequestFactory('PAGE3_FB_OBJ_ID', access_token=PAGE3_ACCESS_TOKEN),
        ])



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Facebook API | Python library | Python | Facebook | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM