Select the types of activity you want to include in your feed.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
···131131 return id(new AphrontRedirectResponse())
132132 ->setURI('/');
133133 }
134134+135135+ $known_email = id(new PhabricatorUser())
136136+ ->loadOneWhere('email = %s', $user_data['email']);
137137+ if ($known_email) {
138138+ if ($known_email->getFacebookUID()) {
139139+ throw new Exception(
140140+ "The email associated with the Facebook account you just logged in ".
141141+ "with is already associated with another Phabricator account which ".
142142+ "is, in turn, associated with a Facebook account different from ".
143143+ "the one you just logged in with.");
144144+ }
145145+ $known_email->setFacebookUID($user_id);
146146+ $session_key = $known_email->establishSession('web');
147147+ $request->setCookie('phusr', $known_email->getUsername());
148148+ $request->setCookie('phsid', $session_key);
149149+ return id(new AphrontRedirectResponse())
150150+ ->setURI('/');
151151+ }
134152135153 $current_user = $this->getRequest()->getUser();
136154 if ($current_user->getPHID()) {