Giter Club home page Giter Club logo

Comments (3)

batiste avatar batiste commented on August 23, 2024

Actually it seems that getSession works the first time with the token...

But then when I do

            self.api.session_key = auth_datas['session_key']
            self.api.uid = auth_datas['uid']
            # could trigger an eventual expired error
            self.api.auth.getSession()

I get this error 100...

The data are of this form :

{'session_key': u'2.gNsdfasdq601_ONXo12BQ__.86400.1245423600-536937787', 'uid': 536937787}

Any idea? Please I am really depending on your API!?

What about is :

http://www.shuningbian.net/2009/05/facebook-python-authentication-gateway.php

from pyfacebook.

imrehg avatar imrehg commented on August 23, 2024

Don't you do this in the wrong order? My code works perfectly fine as

from facebook import Facebook
# login in web browser
facebook.login()
#
# pause the code until the user finishes logging in, then get session
#
facebook.auth.getSession()
# the session key and uid are stored automatically by pyfacebook
self.api.session_key = facebook.session_key
self.api.uid = facebook.uid

from pyfacebook.

georgedorn avatar georgedorn commented on August 23, 2024

This is fixed in woodcoder's fork. I spent all morning dealing with this and then discovered his fork works fine:
http://github.com/woodcoder/pyfacebook

from pyfacebook.

Related Issues (20)

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.