Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4029768
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:23:13+00:00 2026-05-20T11:23:13+00:00

Does anyone know of a good platform agnostic example or library that does Facebook

  • 0

Does anyone know of a good platform agnostic example or library that does Facebook authentication and Graph API access via Python?

The official Facebook Python SDK is tied to Google App Engine and Pyfacebook is deeply woven with Django.

I just want to be able to mess around in terminal and go through the process of authenticating a user and then doing simple requests from the Facebook API.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:23:14+00:00Added an answer on May 20, 2026 at 11:23 am

    I ran across same problem some time ago and later found out that PyFacebook isn’t deeply tied up with Django. It just uses a few utils from django.

    My recommendation is that you setup PyFacebook alongwith django and then play around with it using command line. To use PyFacebook you won’t have to go through or even know anything about django at all.

    Here’s an example:

    from facebook import Facebook
    
    api_key = 'Your App API Key'
    secret  = 'Your App Secret Key'
    
    session_key = 'your infinite Session key of user'
    
    fb = Facebook(api_key, secret)
    fb.session_key = session_key
    
    # now use the fb object for playing around
    

    You might need to get an infinite session key which you can get from here: http://www.facebook.com/code_gen.php?v=1.0&api_key=YOUR_API_KEY

    Use this code to get convert the code from above URL into infinite session key:

    def generate_session_from_onetime_code(fb, code):
        fb.auth_token = code
        return fb.auth.getSession()
    print generate_session_from_onetime_code(fb, session_onetime_code)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know any good library/tutorial that can do asynchronous image loading for a
Does anyone know a good (preferably open source and cross platform) tool to allow
Does anyone know a good Java lib that will hook into SVN so I
Does anyone know any good tool that I can use to perform stress tests
Does anyone know any good and free .NET Windows Controls Library
Does anyone know a good online resource for example of R code? The programs
Does anyone know a good tool that can be run on a page (for
Does anyone know a good resource to concisely explain the different types of lists
Does anyone know any good tutorial about using NAnt for native code build process
Does anyone know a good C++ class to read (and possibly also write) INI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.