Categories: Social Media

Visualising the world’s relationships through Facebook [Graphic]

Facebook intern Paul Butler (@paulgb) has created this really interesting visualisation of Facebook relationships around the world. Butler used a subset of 10 millions friend pairs and Facebook social graph data to map friend connections with their geographical locations.

Butler explains some of the challenges he faced in making this visualisation in a Facebook note:

“I began by taking a sample of about ten million pairs of friends from Apache Hive, our data warehouse.

“I defined weights for each pair of cities as a function of the Euclidean distance between them and the number of friends between them. Then I plotted lines between the pairs by weight, so that pairs of cities with the most friendships between them were drawn on top of the others. I used a color ramp from black to blue to white, with each line’s color depending on its weight. I also transformed some of the lines to wrap around the image, rather than spanning more than halfway around the world.

“After a few minutes of rendering, the new plot appeared, and I was a bit taken aback by what I saw. The blob had turned into a surprisingly detailed map of the world. Not only were continents visible, certain international borders were apparent as well. What really struck me, though, was knowing that the lines didn’t represent coasts or rivers or political borders, but real human relationships.

“It’s not just a pretty picture, it’s a reaffirmation of the impact we have in connecting people, even across oceans and borders.”

Albizu Garcia

Albizu Garcia is the Co-Founder and CEO of Gain -- a marketing technology company that automates the social media and content publishing workflow for agencies and social media managers, their clients and anyone working in teams.

View Comments

Recent Posts

When good coding principles go wrong

I have come across my share of beautifully written, over-engineered code... one moment I am…

4 hours ago

Inside the web of deception in the age of AI

This week, I’ve seen a lot of over-dramatization of very simple factual events that seem…

4 hours ago

Digital ID ‘plays a foundational role for participation in digital economies’: B20 Task Force

Digital Public Infrastructure (DPI) is not an organic movement; it doesn't come from the will…

6 hours ago

Byte-sized solutions: How tech is transforming life with food allergies 

Nine-year-old Addie Lao from California lives with severe allergies to peanuts, tree nuts, sesame seeds,…

2 days ago

Credibl appoints sustainability leader Viral Thakker as Chief Business Officer to help more businesses achieve regulatory ESG compliance 

Sustainable investment in the US has faced political backlash in 2025 after the current administration's…

2 days ago

CATALYST Launches Real-Time Satellite Intelligence Service for National Defense Agencies

For many decades, satellite images have played an important role in the arena of national…

6 days ago