Technology

How to Engineer a Social Discovery Feature for Billions of Users

2026-05-18 17:10:19

Introduction

On the surface, the Friend Bubbles feature on Facebook Reels looks deceptively simple: it highlights which Reels your friends have watched and reacted to. But behind that simplicity lies a complex engineering challenge—building a social discovery system that scales to billions of users. In a recent episode of the Meta Tech Podcast, engineers Subasree and Joseph shared how they brought Friend Bubbles to life, from evolving machine learning models to handling differences between iOS and Android users. This guide breaks down their journey into a step-by-step framework you can apply to similar projects.

How to Engineer a Social Discovery Feature for Billions of Users
Source: engineering.fb.com

What You Need

Step-by-Step Guide

Step 1: Define Your Core Social Signal

Start by identifying the specific social interaction that drives discovery. For Friend Bubbles, the team chose to highlight Reels that friends had watched and engaged with—likes, comments, shares. This required a clear definition of what qualifies as a "social signal."

Step 2: Build an Evolving Machine Learning Model

The initial model was simple—show all friend interactions equally. But to personalize, Subasree and Joseph developed a model that predicts which Reels a user is most likely to care about based on their friend's past behavior.

Step 3: Analyze Platform Differences (iOS vs. Android)

A surprising finding was that iOS and Android users behave differently when interacting with Friend Bubbles. For example, iOS users were more likely to tap bubbles, while Android users scrolled more. This required separate model tuning.

Step 4: Embrace Surprising Discoveries

The biggest breakthrough came when the team noticed that friends who reacted to a Reel but didn't share it still created strong social pull. This reversed their assumption that only shared content mattered. They then optimized the model to give higher weight to silent interactions.

How to Engineer a Social Discovery Feature for Billions of Users
Source: engineering.fb.com

Step 5: Scale to Billions

With the model and features working, the final challenge was serving billions of users with low latency. Friend Bubbles requires real-time computation of who your friends are and what they did.

Tips for Success

Building a feature like Friend Bubbles is never as simple as it appears. But by following these steps—defining signals, building adaptive models, accounting for platform quirks, staying open to discoveries, and scaling thoughtfully—you can create social discovery that delights billions.

Explore

Valve Overhauls Steam Tags: NSFW and Mature Labels Replaced by Specific Content Descriptors Coursera and Udemy Finalize Merger to Form Dominant Global Skills Platform How to Securely Manage Secrets for Grafana Cloud k6 Load Tests Gaming Laptop Excellence in 2026: Expert Picks for Portable Power Outward 2: A July Launch for the Anti-Power Fantasy RPG, with Minimal PC Specs