Wikia/app — pull request #5588 by jsutterfield (2014-12-02 22:24:20+00:00)
Title: Make sure $this->facebookUserId is set before grabbing session

There's a problem with the current implementation of caching a session in the FBClient. We create a cache key using $this->facebookUserId which hasn't been set by this point - meaning that all users are sharing the same cache key. This fix makes sure we set $this->facebookUserId before checking the cache for a session.