Giter VIP home page Giter VIP logo

Comments (4)

martey avatar martey commented on May 20, 2024

I am not sure that I understand this.

If you are using server-side authentication, you should not be using get_user_from_cookie because that authentication method does not use cookies. Server-side apps should use get_access_token_from_code instead.

Let me know if I am missing something here.

from facebook-sdk.

collinsethans avatar collinsethans commented on May 20, 2024

I was probably not clear. I am using client-side auth and I meant the associated processing on the server side to get the access_token from the cookie.

from facebook-sdk.

martey avatar martey commented on May 20, 2024

That clarifies things, but I still do not understand this issue.

The "fbsr" cookie is created and deleted by the JavaScript SDK. If the user has not authenticated with Facebook, the cookie will not exist, and get_user_from_cookie should return None. There should not be a situation where the "fbsr" cookie exists without the user having authenticated.

It would help if you could provide steps that explain how to reproduce this issue.

from facebook-sdk.

collinsethans avatar collinsethans commented on May 20, 2024

I think I am at wrong here. I was mentioning about the call for getting the access_token in lieu of the code. A couple of days back when I was manually testing the exchange process from a python shell, I had a test case where I log out before I call the get_access_token_from_code and that had worked. Today I tested it extensively and notice that it does not. Mostly I was doing something wrong previously to get the exchange done even when I was logged out, or probably fb was doing something wrong then.

So, effectively, there is no problem with the comment of get_user_from_cookie as I had mentioned initially. Sorry for the dead notice.

from facebook-sdk.

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.