Troubleshooting: Facebook constantly logs out in Safari

**Update** Facebook made updates that fixes this problem.

Troubleshooting: Facebook constantly logs out in Safari

A recent problem has cropped up with the latest version of Safari, 3.2.1 and Leopard 10.5.6. When using Facebook (and possibly other websites such as Last.fm, Gmail, and Twitter, that require authentication to login,) users are finding that they constantly have to re-login again. Of course this gets annoying, and makes accessing those sites nearly impossible. This problem is bad enough that it could even be affecting Firefox users too.

The culprit maybe partially on Facebook’s side as they attempt to combat the recent virus threats and the Leopard/Safari upgrade may be coincidence. Another guess is that Apple changed how multiple programs handle cookies and this is causing issues.

In addition users of iPhones and Adium in conjunction with Facebook seem to have a high chance of having an issue. Using Facebook Chat in Adium and on the iPhone is one of the culprits.

While not a guarantee, here are some possible fixes.

iPhone Users: (may have to be jailbroken to work, I do not have an iPhone to confirm)
1.) Download a terminal program for the iPhone
2.) chown -R mobile /var/mobile/
3.) Power Cycle the iPhone

It seems that the /var/mobile directory is owned by the root user instead of mobile and is causing some of these problems problems.

Adium Users:

  • Disconnect from Facebook or Google Chat before logging in to Facebook or GMail
  • Safari: One or all of these options may be needed to fix

  • Disable Private Browsing (Under Safari Menu, the Private Browsing)
  • Empty Safari Cache (Safari Menu, Empty Cache)
  • Clear Cookies (Safari Menu, Preferences, Security, Show Cookies, Remove All)
  • Reset Safari (Safari Menu, Reset Safari)
  • Reinstall Safari (Download from here)
  • Remove Autofill (Safari Menu, Preferences, Autofill, User Names and Passwords, Edit, remove the site that is having issues)
  • Remove Keychain Entry (Applications/Utilities/Keychain Access. Remove affected site, then go to Menu, Keychain First-Aid, then Repair.)
  • Delete cookie.plist file (/User Home Directory/Library/Cookies/Cookie.plist)
  • Advanced Safari Tip: Enable Developer menu using the command line: defaults write com.apple.Safari IncludeDebugMenu 1 or download Safari Enhancer and clear cookies from this menu.

    Dashboard:

  • Disable any Web Clippings
  • If any of these do work, or you have another solution (or a question about the above,) let me know in the comments and I’ll see what I can do.

    How To: Disable Dashboard in OS X

    How To: Disable Dashboard in OS X

    Dashboard in Leopard is a love it or hate it application. There are several useful applications that can make life easier. On the other hand, it’s easy to hit the activation buttons on Mighty Mouse by accident. Other people may begrudge Dashboard’s use of memory. It’s not much, but on low end machines every bit counts.

    This is how to disable Dashboard:

    Open Terminal (as an admin user)

    type: defaults write com.apple.dashboard mcx-disabled -boolean YES

    Hit Enter

    type: killall Finder

    When Finder restarts, Dashboard should be gone. To turn it back on follow the same instructions, but replace YES with NO.

    The first command is the powerful one. There are a lot of default behaviors that can be changed in OS X if the write command is known.

    The second command, killall Finder simply does the same as force quitting Finder from the GUI. It forces the Finder to quit, relaunch and reload everything, including the Dock. In this case it does not relaunch Dashboard though.

    Please let me know if you find this helpful. Also suggestions for other terminal commands would be appreciated.