Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You may be running into an odd thing with the iOS library.</p> <p>Remember that every iOS app has separate storage space - they are kept that way so that another app can't touch things that do not belong to it. This sandboxing prevents malicious or badly made apps from hurting anything other than themselves.</p> <p>This is true for Safari on the iPhone - cookies set for a session in Safari ARE NOT available to your app. Cookies set in a UIWebView in your app ARE NOT available to Safari. There is some confusion about this since on the desktop OSX system, you can share cookies. You can not do so on iOS, despite the class method's tempting name, SharedHTTPCookieStorage.</p> <p>The Facebook SDK authentication code can try up to three ways to authenticate on a device... It can call the Facebook app, and ask to authenticate through it, allowing users of that app to only log in once. If the FB app is not installed, it opens a window in the mobile safari browser and tries to login there, setting cookies in the browser's sandbox if it can. If it can open neither, it opens a UIWebView in your app's space and stores its cookies local to your app.</p> <p>I would guess that the authentication is happening in different places in your simulator and on your iPhone, and so the cookies live somewhere else.</p> <p>What is really frustrating is that if you utilize the nice single sign on feature, you cannot then open UIWebviews to Facebook in your app without forcing a second logon. The cookies are not available to you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload