Linux: Setting Up Google Talk/Chat on Pidgin

It looks like there are a lot of people out there having trouble getting Google Talk to play nice with Pidgin. If you're running into an authentication error, the culprit may have nothing to do with your credentials or Pidgin. Google just doesn't recognize the app as "secure", so they'll deny the login unless you adjust your account settings. Here's a walkthrough, if you need it.

I kind of doubt Pidgin actually falls within whatever Google defines as an insecure third party application: it's more likely that they just don't want you leaving the Google ecosystem. Either way, I wound up hitting my head against a wall recently when trying to get my Google Talk/Chat account setup on Pidgin. The trick is to login into Google and adjust the security settings on your account. Let's start with setting up your credentials on Pidgin; I'll cover where/how to adjust your Google account afterwards.

Setting Up Your Account

Go to "Accounts >> Manage Your Accounts", and if you haven't already, click the "+ Add" button. It should open a window much like the one below. Everything should be more or less straightforward:

  • Protocol should be XMPP
  • Username is the username before "@gmail.com" associated with your Gmail account: i.e., username@gmail.com
  • Domain should be gmail.com
  • Resource should be home
  • Password should be whatever password you use to log into your Google account
setting up a XMPP chat account on Pidgin
There is a "GoogleTalk" option under the Protocol drop-down; I don't think it matters if you use that or XMPP--once you save the settings, the protocol automatically changes to XMPP.

Add the user and you should be ready for the next step. I've seen several help articles for getting Google Talk/Chat setup in Pidgin that suggest tweaking "Advanced" settings. In my case, the application works fine with the section as-is; there should be no need to change defaults.

Now comes the tricky part: in order to avoid an Authentication Error at login, you'll need to sign into your Google Account.

Google's Security Settings

Sign into your Google Account and head to the "Manage Your Account Settings" page; after login, you should be able to access it by clicking on your account image (uppermost right corner of the window). Once on the Account Settings page, click "Security" in the left-hand sidebar. On the "Security" page, scroll down until you get to the "Less secure app access" section:

Turn on less secure access in Google security settings
PRO TIP: if you'd actually like to keep people in your ecosystem, try empowering them with freedom instead of restricting their ability to control their own user experience. Who am I kidding!?--Big Tech is always gonna be Big Tech.

The section should have a link to "Turn on access (not recommended)". Throw caution to the wind and raise your middle finger proudly as you click on the link you're not supposed to click. You'll be given one last chance to reconsider your life choices:

allowing less secure apps to access your google account
Google's going to stick an unpleasantly large object up your butt if you don't continue to access your account with this highly vulnerable app. I wonder how long they wait before turning this option OFF again?

Now that you've opened Pandora's Box, you should have no problem authenticating with Pidgin. Head back to Pidgin and under the "Accounts" menu, you should be able to select your Google account and mark it "enabled". If you're still having trouble, my guess is that your account info is wrong. Double check username and password, etc.