Giter Site home page Giter Site logo

Comments (16)

yujuan avatar yujuan commented on April 20, 2024

We make a server side change to address http://github.com/facebook/facebook-ios-sdk/issues/#issue/5 which will take a persistent cookie instead of the session only one. So after you clear cookie and login again, everything is fine, right?

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Just for that session, when I quit the app and restart it logs me in but doesn't let me access the pages.

I have an app in queue at Apple now using this, it would be completely horrible if it goes through the review and is broken at release.

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Please please please fix this. :(

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

you mean www.facebook.com? As we change to use persistent cookie which is actually mobile cookie, you would need to go m.facebook.com or touch.facebook.com...

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Yes, the main site. The entire app relays on using the main site and not m. or touch.

PLEASE change this back. :(

The app has been in queue for 2 weeks now, even if there was some way for me to fix this in my own code I would go back at the end of the queue again.

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Oh and I do seem to get the cookie for the main site the first time, it's only on subsequent sessions that it doesn't work.

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

Yes, the main site accept the session-only cookie and this cookie should not be persistent. so when you first log on it is there. For mobile app, we should always use mobile cookie which is persistent and prevent user from login again and again.

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Ok. Short and sweet. How do we solve this now?

My entire business is dependent on this app going through, and the almost 2 week wait has been rough enough. To reject the binary now, or release a broken app would basically ruin us.

We based the entire system on the current Graph API and the framework here, and now it just changed under our feet.

How can we solve this?

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

You get the cookie for the first time but not for 2nd time, this behavior is never changed. I am not sure what is broke here. Did you save the cookie and reset it?

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Not manually no, but it is saved automatically in the sharedHTTPCookieStorage. Again, this has worked perfectly up until this morning.

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

I do not think the main site cookie is preserved. see http://github.com/facebook/facebook-ios-sdk/issues#issue/5 the session only cookie is not kept for the next time. Basically for the first time you query sharedHTTPCookieStorage and see all the cookies, for the 2nd time, without login, those session-only cookie would not be there. This is always the case...

I need to know more about how you use the sdk. You call authorize and then load www.facebook.com ? The best way is to let the user login everytime the app start or change to use m site if you want persistent cookie

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Basically every time I start the app I have to run authorize:permissions:delegate: on the Facebook object, which pops up the dialog but you don't have to login again. Now this still happens, but after the dialog has disappeared and the app tells me it's logged in through the fbDidLogin delegate then it's still not logged in for the main site. That is what changed. It used to be logged in to the main site even after not having to type in the username and password.

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

I just tested here and I get the same problem with touch.facebook.com now.

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

you can put a break point at the place you load www.facebook.com or touch.facebook.com and read the cookie from sharedHTTPCookieStorage and see what cookie is there

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

I emailed you the cookies.

from facebook-ios-sdk.

gankit avatar gankit commented on April 20, 2024

ping. I am having the same issue. Is there any solution for a persistent cookie?

from facebook-ios-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.