Raise LoginRequired exception when appropriate for (un)friend.