How Does X Recommend Accounts to Follow? What the Open-Source Code Shows

How does X recommend accounts to follow?

X recommends accounts to follow through its Follow Recommendations Service, according to the 2023 open-source code. The service gathers candidates from signals like likely mutual follows, synced contacts, popular accounts near you and accounts you interact with, then ranks them by the predicted chance you'll follow and engage afterward.

You follow one person in a niche, and soon the "Who to follow" box fills with three more just like them. It can feel a little spooky. Here's something most people don't know: the logic behind that box was published, folder by folder, in 2023.

I went through the parts of that code that have readable documentation. What I find interesting is how much of it is about friendship patterns, not fame. Let me explain what's documented, what's only hinted at, and what X hasn't confirmed for today.

What is the Follow Recommendations Service?

The Follow Recommendations Service (FRS) is the part of X's 2023 code that suggests accounts for you to follow. Its README says it powers "Who to follow" recommendations across several parts of the app, and also helps pick posts from accounts you might want to follow later.

The Follow Recommendations Service README names the places it serves: the Who-To-Follow module, the new-user experience after sign-up, advertisements, and "FutureGraph" posts. That last one means posts from accounts the system thinks you'll want to follow in the future.

One important caution. This code comes from the March 2023 release. X hasn't confirmed that account recommendations still work the same way in 2026. The newer 2026 repository covers the For You feed, not the Who to follow box.

How does X find accounts to suggest?

X finds accounts to suggest using many separate "candidate sources," each with its own method. The 2023 code has more than a dozen folders of candidate sources, covering mutual-follow patterns, contacts, location, engagement and more.

I read the documentation for four of them. Here's what each one says:

Candidate sourceWhat its README says
Strong Tie Prediction (STP)Predicts the chance two users will follow each other, and suggests accounts with a high chance of a mutual follow
Triangular loopsLooks for follow loops of the form u to v to w to u, and suggests closing the loop
Pop GeoSuggests the most followed or "quality followed" accounts in your country or area over the past 2 weeks
Address bookSuggests your phone and email contacts, only if you've synced your address book

The other folders, listed in the candidate sources directory, have names like real_graph, recent_engagement, sims, two_hop_random_walk and promoted_accounts. The names hint at what they do, but I'm not going to guess at details their files don't explain. Promoted accounts are worth noting, though: some suggestions can be ads.

What is Real Graph and why does it matter?

Real Graph is a model from the 2023 code that predicts how likely one user is to interact with another. It counts interactions between pairs of accounts, which makes it a natural signal for who you'd want to follow.

The Real Graph README lists public signals like likes, reposts and follows. It also lists private ones like profile views and post clicks, plus whether a user has another user in their address book, which requires opting in to share contacts. It keeps daily counts and a decayed total for each pair, so recent interactions matter more than old ones.

What this means for you: the people you interact with, and who interact with you, shape the suggestions on both sides.

How are suggested accounts ranked?

Suggested accounts are ranked by a machine learning model that combines two predictions: the chance you'll follow the account, and the chance you'll engage positively with it after following. The 2023 README calls the final score a weighted sum of those two.

Before and after ranking, filters remove low-quality or unhealthy candidates. Heavier filters usually run after ranking. Then the list is cleaned up: duplicates are removed, and "social proof" is added. That's the "Followed by" line you see under a suggestion.

The design makes sense. A suggestion you follow but never engage with isn't a good suggestion, so the system tries to predict both.

Do posts in For You lead to follows too?

Yes. The 2026 For You code predicts whether a viewer will follow the author of a post, and it gives that action a default weight of 4.0. So a post can work as a recommendation of its author.

That comes from the 2026 xai-org repository, which lists "follow author" among the actions its Phoenix model predicts. For most growing accounts, this is the bigger path. People discover you through a post, tap your name, and decide. My guide on getting on the X For You page covers how posts reach non-followers.

What this means for your growth

To show up in more follow suggestions, build real connections inside one community. Mutual follows, repeated interactions and steady engagement are the signals the 2023 code is built around.

Based on what I've seen, small accounts that act like part of a community get suggested more than accounts that broadcast to nobody. That's my opinion, and X hasn't published data on it. For the bigger picture of how ranking works, see how the X algorithm works in 2026.

The short version

X recommends accounts to follow by looking at who you know, who your friends know, who's popular near you and who you interact with, then predicting whether you'll follow and stay engaged. The details may have changed since 2023, but the idea holds up well. Be a real, active part of a community, and the suggestions start pointing toward you.

Frequently Asked Questions

Why does X suggest people from my contacts?

X's 2023 code includes an address book candidate source that suggests your phone and email contacts. Its README says it only works when you've synced your address book with the service. If you never synced contacts, this source shouldn't have your contacts to work with.

Are some Who to follow suggestions ads?

Some can be. The 2023 Follow Recommendations Service README lists advertisements among the places it serves, and its candidate sources include a folder named promoted_accounts. So an account suggestion may sometimes be paid placement rather than a pure match based on your activity.

Does X recommend accounts based on location?

Yes, location can play a part. The 2023 code includes a Pop Geo candidate source that suggests the most followed or quality followed accounts in a country or geolocation over the past 2 weeks. A quality follow is one that leads to visible engagement.

Is the 2023 follow recommendation code still used today?

X hasn't confirmed whether the 2023 Follow Recommendations Service still runs the same way. The January 2026 open-source release covers the For You feed, not account suggestions. Treat the 2023 code as a strong guide to the design, not a guaranteed description of today.

How can I get recommended to more people on X?

Interact consistently with people in one niche, earn mutual follows, and post things that make people want to follow. The 2026 For You code gives a predicted follow of the author a default weight of 4.0, so strong posts work as account recommendations too.