Wikia/app — pull request #3502 by Grunny (2014-05-05 13:32:36+00:00)
Title: (CE-767) Make FBConnect user group implicit

Currently FBConnect adds the group 'fb-user' when a user connects an
account to Facebook, however, this group was intended to be implicit,
which means it shouldn't be actually added to the account. Also, when the
account is disconnected, the group isn't removed, and it's only added on
the wikia that they connected the account on, so won't show up on other
wikias anyway.

The group also caused an issue where these users wouldn't be included in
ListUsers on the wikias where they were added to the group by the extension
because ListUsers won't list groups in `$wgImplicitGroups`, and as it wasn't
actually implicit and was added to the events table they weren't included in
ListUsers.

This change makes the group properly implicit and will display the user as an
fb-user on any wikia if their account is currently connected, but won't after they
disconnect the account. It also ignores existing entries in the events table that
have just the fb-user group on ListUsers.