The Facebook Blog
Last Friday, we promised more information, so here it is. We've purposely been keeping kind of quiet about Platform on the site in order to give all the new applications and functionality—on our side and on the developers' side—time to breathe and grow virally. Now that we've seen a week of activity, it's time to give you the full story on Platform and what it means for you.
When we made changes to the site back in April, we broke up the menus to differentiate between the applications people use on Facebook and the core of the site. Applications are things like Photos, Notes, Groups and Events. They live in the left hand menu and they use different parts of the core, which tend to live in the top menu—things like Facebook profiles and News Feed. But most importantly, applications use the real connections people have to help them share information more efficiently.
For example, the Facebook Photos application is actually the #1 most trafficked photo application on the entire web because it uses people's real connections—what we call the social graph—to help people efficiently share their photos. Facebook has this graph of increasingly powerful connections that people use to communicate.
We started working on Platform a little more than a year ago. Since then we've taken Platform out of beta, written FQL(Facebook Query Language), and various other tools for developers, and now we're ready for the next step. With this evolution of Facebook Platform, we've made it so that any developer can build the same applications that we can. And by that, we mean that they can integrate their application into Facebook—into the social graph—the same way that our applications like Photos and Notes are integrated.
You'll see applications integrating into Facebook in a lot of familiar ways. Applications can have a box on the profile. They may also have an item in the profile actions menu (below your profile picture). They can also have a link in the profile drop-down menu and put stories in Mini-Feed.
That's just profile integration though. Applications can also have a presence in the left hand menu, and that link can take you to whole pages that are generated within the Facebook site. These pages are in many ways the part of Platform that really enables developers to build full applications for Facebook. Applications can have anything they want on these home pages, and they can have as many pages like them as they want. It's not just a widget; it's a full application.
Since there will be a lot of applications, you will have the choice of adding and removing any applications you like. You can add new ones and even remove ours if you like. Wherever applications are displayed in some order, we try to let you reorder them. This means that you can reorder the boxes in your profile and the applications in your left hand menu in any way you want.
Maintaining the user experience is important, so we've made it so that you have to click to activate any flash object before it can start playing. This will prevent animations or videos or music from playing when a profile loads.
It's important to remember that simply seeing an application is not the same as interacting with it or granting it the ability to see your information. You will have to opt-in to any application in order for it to access your information or be put on your profile. Also, please note that we never sell your information or expose your contact information. You can manage your applications—ones you've added to your account, used on other sites or on your desktop—and use granular privacy controls for other applications in the "Applications" section of the Privacy page. If you see an application that you think is offensive or worrisome, you can report it, block it from ever interacting with your profile or information, or do both.
You can get a taste of how this all works by adding our Video application to your profile, or looking for an "add" link when you discover a new application on your friends' profile or within your News Feed.
Katie is Facebook's Director of Product.
When we made changes to the site back in April, we broke up the menus to differentiate between the applications people use on Facebook and the core of the site. Applications are things like Photos, Notes, Groups and Events. They live in the left hand menu and they use different parts of the core, which tend to live in the top menu—things like Facebook profiles and News Feed. But most importantly, applications use the real connections people have to help them share information more efficiently.
For example, the Facebook Photos application is actually the #1 most trafficked photo application on the entire web because it uses people's real connections—what we call the social graph—to help people efficiently share their photos. Facebook has this graph of increasingly powerful connections that people use to communicate.
We started working on Platform a little more than a year ago. Since then we've taken Platform out of beta, written FQL(Facebook Query Language), and various other tools for developers, and now we're ready for the next step. With this evolution of Facebook Platform, we've made it so that any developer can build the same applications that we can. And by that, we mean that they can integrate their application into Facebook—into the social graph—the same way that our applications like Photos and Notes are integrated.
You'll see applications integrating into Facebook in a lot of familiar ways. Applications can have a box on the profile. They may also have an item in the profile actions menu (below your profile picture). They can also have a link in the profile drop-down menu and put stories in Mini-Feed.
That's just profile integration though. Applications can also have a presence in the left hand menu, and that link can take you to whole pages that are generated within the Facebook site. These pages are in many ways the part of Platform that really enables developers to build full applications for Facebook. Applications can have anything they want on these home pages, and they can have as many pages like them as they want. It's not just a widget; it's a full application.
Since there will be a lot of applications, you will have the choice of adding and removing any applications you like. You can add new ones and even remove ours if you like. Wherever applications are displayed in some order, we try to let you reorder them. This means that you can reorder the boxes in your profile and the applications in your left hand menu in any way you want.
Maintaining the user experience is important, so we've made it so that you have to click to activate any flash object before it can start playing. This will prevent animations or videos or music from playing when a profile loads.
It's important to remember that simply seeing an application is not the same as interacting with it or granting it the ability to see your information. You will have to opt-in to any application in order for it to access your information or be put on your profile. Also, please note that we never sell your information or expose your contact information. You can manage your applications—ones you've added to your account, used on other sites or on your desktop—and use granular privacy controls for other applications in the "Applications" section of the Privacy page. If you see an application that you think is offensive or worrisome, you can report it, block it from ever interacting with your profile or information, or do both.
You can get a taste of how this all works by adding our Video application to your profile, or looking for an "add" link when you discover a new application on your friends' profile or within your News Feed.
Katie is Facebook's Director of Product.
You may have heard that we just unveiled the next evolution of Facebook
Platform. Our new stuff will be going live sometime tonight, so definitely stay tuned on the site and on the blog for more information tomorrow.
Platform. Our new stuff will be going live sometime tonight, so definitely stay tuned on the site and on the blog for more information tomorrow.
Facebook users love our photos application, it's one of the most popular areas on the site. The cool front-end features—like upload, tagging, and editing—are great, but I'd like to take a moment and talk about our photo infrastructure. It's the part of our photos feature that users never see, but it quietly works 24 hours a day to quickly serve all those photos to millions of users.
Allow me to geek out and share some photo infrastructure statistics with
you. We have:
(For you sharp-eyed geeks out there, we actually store four image sizes for each photo, so if you want to know how many files we have, multiply the photo numbers by four. That's right, we're adding a quarter billion files every week.)
And that's just the storage side of things. We also have a fleet of servers who receive your photo uploads, happily scrubbing out EXIF data and tweaking the quality settings so your photos look their best. Another fleet of servers and caches who feed images to our CDN (content delivery network) partners. And hey, if we feel like it, we can serve some of the photo traffic directly ourselves too.
We have also developed our own specialized web servers that are tuned to serve files with as few disk reads as possible. Even with thousands of hard drive spindles, I/O (input/output) is still a concern because our traffic is so high. Our squid caches help reduce the load, but squid isn't nearly fast or efficient enough for our purposes, so we're writing our own web accelerator too.
That's just a taste of the current photo infrastructure, and while the system we've got is pretty sweet, there are even bigger things to come. Browser-side sampling of image response times so we can immediately know when ISPs are having issues, automated balancing of load between CDNs and the Facebook network (why pay a CDN to serve images in the middle of the night when we've got a huge photo serving tier that's quiet at that time?), better image performance for our international users, the list goes on and on...
Doug has a bet with the storage team that Facebook will have a petabyte of photos before April 2008, so please don't let him down.
Allow me to geek out and share some photo infrastructure statistics with
you. We have:
- 1.7 billion user photos
- 2.2 billion friends tagged in user photos
- 160 terabytes of photo storage used with an extra 60 terabytes available
- 60+ million photos added each week which take up 5 terabytes of disk space
- 3+ billion photo images served to users every day
- 100,000+ images served per second during our peak traffic windows
(For you sharp-eyed geeks out there, we actually store four image sizes for each photo, so if you want to know how many files we have, multiply the photo numbers by four. That's right, we're adding a quarter billion files every week.)
And that's just the storage side of things. We also have a fleet of servers who receive your photo uploads, happily scrubbing out EXIF data and tweaking the quality settings so your photos look their best. Another fleet of servers and caches who feed images to our CDN (content delivery network) partners. And hey, if we feel like it, we can serve some of the photo traffic directly ourselves too.
We have also developed our own specialized web servers that are tuned to serve files with as few disk reads as possible. Even with thousands of hard drive spindles, I/O (input/output) is still a concern because our traffic is so high. Our squid caches help reduce the load, but squid isn't nearly fast or efficient enough for our purposes, so we're writing our own web accelerator too.
That's just a taste of the current photo infrastructure, and while the system we've got is pretty sweet, there are even bigger things to come. Browser-side sampling of image response times so we can immediately know when ISPs are having issues, automated balancing of load between CDNs and the Facebook network (why pay a CDN to serve images in the middle of the night when we've got a huge photo serving tier that's quiet at that time?), better image performance for our international users, the list goes on and on...
Doug has a bet with the storage team that Facebook will have a petabyte of photos before April 2008, so please don't let him down.
If you were to check out the Toronto, ON network page, you'd notice that the Toronto network has over half a million members—a huge chunk of the explosive growth Facebook has recently seen in Canada (2 million Canadian users—or 10% of the Facebook population—and counting).
Soon after the launch of network pages, I started a new topic on the Toronto Discussion Board where I asked Torontonians what factors they thought contributed to the growth of the Toronto Facebook network. Since then, several enthusiastic members have posted their theories, ranging from the GTA (Greater Toronto Area) coverage, and word of mouth, to the explosive media coverage Facebook has been receiving.
Soon after the launch of network pages, I started a new topic on the Toronto Discussion Board where I asked Torontonians what factors they thought contributed to the growth of the Toronto Facebook network. Since then, several enthusiastic members have posted their theories, ranging from the GTA (Greater Toronto Area) coverage, and word of mouth, to the explosive media coverage Facebook has been receiving.

How does growth in Canada compare to other non-U.S. countries? This graph shows weekly shares of total users by country of affiliation for non-U.S. users. Since the beginning of 2007, the number of Canadian users has nearly doubled in relative presence on Facebook!
There may not be one single reason why Facebook is so popular in Canada, but rather a combination of tipping-point factors that continue to make networks like Toronto so unique in terms of growth. The best part is that as more people in Toronto join, the more relevance Facebook has for everyone involved, as it becomes more and more likely that all your friends are members. On behalf of all the Facebook Team, and as the resident Canadian, I want to say "Thanks Canada!".
P.S. A little internet video that made the rounds in the US in the last few months is now circulating in Canada. Just so everyone knows, Facebook is not selling any of your information. It never has and never will. Period.
Nico, Facebook's Privacy Engineer, is a fan of Rush, The Tragically Hip, Blue Rodeo, Cowboy Junkies, and Leonard Cohen.
As of today, Facebook has fully rolled out our new Marketplace feature. You can use Marketplace to list what you have and what you want within your group of friends, networks, or other networks. Beyond its use for classified listings, you can use Marketplace to get a sense of everything available or desired within your networks.
Your listings in Marketplace can be anything—books and DVDs you don't need anymore, the dream job you are looking to land, or the special requirements it takes just to be your roommate—but one thing remains the same; you have something to offer, and someone else is probably looking for that thing.
Your listings in Marketplace can be anything—books and DVDs you don't need anymore, the dream job you are looking to land, or the special requirements it takes just to be your roommate—but one thing remains the same; you have something to offer, and someone else is probably looking for that thing.

For Sale: Cute Dog
You can create a listing for basically anything, and you can easily track your connections to other people in Marketplace. This means that the next time you want to buy something, you can ask a mutual friend of the seller if she is the type to scratch CDs or let the cat have free reign over the sofa bed. As always, you have complete control over your privacy and the privacy of your listings.
Lastly, it's important to note that this idea was catalyzed by a mock-up built entirely in Excel by Josh Pritchard. Tell him thanks when you sell your fuzzy sticker collection.
Jared, a PM and Designer at Facebook, can't imagine making a whole mock in Excel. Seriously.
In a previous post titled "The Spirit of Openness," Steven Grimm wrote about the various open source projects we use and contribute to at Facebook. We wanted to give everyone some "down and dirty" details on a couple of those projects, specifically relating to the PHP community.
You might have noticed that the user-facing portion of Facebook is written in PHP, and we're fortunate enough to be able to make contributions back to some PHP related projects. Most of our contributions (so far) have been towards an optimization extension called the Alternative PHP Cache (APC). Some of this code includes faster locking mechanisms like Futex locks, POSIX mutex locks, and porting spin locks from the PostgreSQL project. Some changes are bug fixes rather than enhancements, like bug #7816 and #8663 (a configuration and file update bug which never really affected Facebook directly, but we're happy to help).
We've added new caching statistics to help engineers learn what's being effectively cached and what's not. Our own opcode copy optimizations significantly cut down Facebook load and response time last month. We also added multi-key fetches, faster statistics, and a cool apc_compile_file function. We get to sneak in occasional patches to other PHP related projects like a PHP foreach bug, a "script" option for xdebug, and PHP-5.2 compatibility for APD. These changes cut down on the number of bugs engineers have to deal with, and give them new functionality for measuring site performance.
When site performance and technology is core to what you do, like it is at Facebook, having control over changes of every aspect of the site is crucial. Facebook runs with some modifications to projects like PHP that aren't stable or generic enough for inclusion in a public release (although we do our best to make these available). Having people available that work on programming languages, caches, or storage facilities gives Facebook a distinct edge over other sites that aren't as concerned about end user experience or being part of an open source community.
If you're interested in more information on open source projects, check out ohloh.net. You can see statistics on APC and PHP as well as many other projects like memcached, another project we are proud to contribute to. There are many people that come together to make these projects a reality, and it's awesome to be part of something that affects so many people. Getting involved in open source projects is a great way to learn and become part of a larger community. Finding a company that understands this as well is even better.
Brian Shire, an engineer at Facebook, is working on fixing some PHP bugs.
You might have noticed that the user-facing portion of Facebook is written in PHP, and we're fortunate enough to be able to make contributions back to some PHP related projects. Most of our contributions (so far) have been towards an optimization extension called the Alternative PHP Cache (APC). Some of this code includes faster locking mechanisms like Futex locks, POSIX mutex locks, and porting spin locks from the PostgreSQL project. Some changes are bug fixes rather than enhancements, like bug #7816 and #8663 (a configuration and file update bug which never really affected Facebook directly, but we're happy to help).
We've added new caching statistics to help engineers learn what's being effectively cached and what's not. Our own opcode copy optimizations significantly cut down Facebook load and response time last month. We also added multi-key fetches, faster statistics, and a cool apc_compile_file function. We get to sneak in occasional patches to other PHP related projects like a PHP foreach bug, a "script" option for xdebug, and PHP-5.2 compatibility for APD. These changes cut down on the number of bugs engineers have to deal with, and give them new functionality for measuring site performance.
When site performance and technology is core to what you do, like it is at Facebook, having control over changes of every aspect of the site is crucial. Facebook runs with some modifications to projects like PHP that aren't stable or generic enough for inclusion in a public release (although we do our best to make these available). Having people available that work on programming languages, caches, or storage facilities gives Facebook a distinct edge over other sites that aren't as concerned about end user experience or being part of an open source community.
If you're interested in more information on open source projects, check out ohloh.net. You can see statistics on APC and PHP as well as many other projects like memcached, another project we are proud to contribute to. There are many people that come together to make these projects a reality, and it's awesome to be part of something that affects so many people. Getting involved in open source projects is a great way to learn and become part of a larger community. Finding a company that understands this as well is even better.
Brian Shire, an engineer at Facebook, is working on fixing some PHP bugs.
As Facebook grows, our users get more and more diverse. Some attend college, some have grandkids, some live in Norway, some are in relationships, some were born on February 29th, and some Facebook users are blind.
Some of these facts might surprise you ("not my grandparents" and "Norway? No way!" ). And that last group might be particularly surprising. Many sighted people aren't aware that computers today can be extremely accessible to the blind. I say "can be" because there are a couple factors at play:
First of all, a blind user must have access to some kind of assistive technology. The most common type of assistive software for the blind is a screen reader. With a screen reader enabled, a user can tab through different elements on a page while the screen reader verbally describes each element.
While screen readers are pretty effective, they're not people-smart. In order to work properly, they require the program or website they're reading to adhere to certain guidelines. For example, a screen reader can't figure out who is in a picture, but if a picture has a clear descriptive caption, a blind user can better understand what's on the screen.
Most Facebook pages adhere to the guidelines which make the site accessible to the blind community. Recently, however, we received reports from a few devoted users that not all of our features were up to snuff. So, this week we launched a screen-reader accessible version of the Gift Shop . It's currently linked off the help page, though later this week we'll be incorporating it more tightly with the original Gift Shop.
We know there are areas on the site that still require accessibility enhancements. While balancing those enhancements with the rest of the work we have to do, we plan to make those changes soon. If you notice anything else we can do to improve access to Facebook, as always, feel free to submit your suggestions.
Leah is a product manager at Facebook. She's gifted.
Some of these facts might surprise you ("not my grandparents" and "Norway? No way!" ). And that last group might be particularly surprising. Many sighted people aren't aware that computers today can be extremely accessible to the blind. I say "can be" because there are a couple factors at play:
First of all, a blind user must have access to some kind of assistive technology. The most common type of assistive software for the blind is a screen reader. With a screen reader enabled, a user can tab through different elements on a page while the screen reader verbally describes each element.
While screen readers are pretty effective, they're not people-smart. In order to work properly, they require the program or website they're reading to adhere to certain guidelines. For example, a screen reader can't figure out who is in a picture, but if a picture has a clear descriptive caption, a blind user can better understand what's on the screen.
Most Facebook pages adhere to the guidelines which make the site accessible to the blind community. Recently, however, we received reports from a few devoted users that not all of our features were up to snuff. So, this week we launched a screen-reader accessible version of the Gift Shop . It's currently linked off the help page, though later this week we'll be incorporating it more tightly with the original Gift Shop.
We know there are areas on the site that still require accessibility enhancements. While balancing those enhancements with the rest of the work we have to do, we plan to make those changes soon. If you notice anything else we can do to improve access to Facebook, as always, feel free to submit your suggestions.
Leah is a product manager at Facebook. She's gifted.

About a year ago we introduced Status Updates to provide a lightweight way for people to give little updates to their friends. Your profile isn't really an appropriate place to tell everyone about the delicious Chipotle you are currently enjoying, and editing your "About Me" section every 15 minutes is just creepy. So in an unprecedentedly bold move, we made a little input box starting with "I am" for everyone to use as they please.
Well, just recently our lawyers received an angry call from the Grammar Police. Really, very angry. As hard as we tried, we just weren't perfect about converting "I am" to "Mark is" without breaking a few rules along the way. We scratched our heads, went to Chipotle, and then decided that we could just change the input to say "Mark is" instead of "I am." Crisis averted.
While we were at it, we decided to make some other improvements. Here's what's shiny and new:
Mark is a Technical Lead at Facebook. That's his job, not his status.
Well, just recently our lawyers received an angry call from the Grammar Police. Really, very angry. As hard as we tried, we just weren't perfect about converting "I am" to "Mark is" without breaking a few rules along the way. We scratched our heads, went to Chipotle, and then decided that we could just change the input to say "Mark is" instead of "I am." Crisis averted.
While we were at it, we decided to make some other improvements. Here's what's shiny and new:
- Your friends' three most recent updates on the home page
- A brand new page to see all your friends' updates at once
- An RSS feed to put your friends' updates in your reader of choice
- The ability to subscribe to a friend's updates via SMS
- The ability to easily update status from your phone by sending an SMS to Facebook starting with the "@" character
Mark is a Technical Lead at Facebook. That's his job, not his status.
This whole process started with a stack of post-its and a white board. We mapped out the different pages of the site, how you got there, and all the paths you could take from there. This exercise was incredibly useful in realizing the redundancies and complications of navigating Facebook.
When Facebook started, it was very simple. There weren't photos or notes, groups or events, mobile integration, or anything else. There was your profile, the network you joined, your friends, and messages. As we built more applications—photos, groups, events—we kept loading them on to that side menu, and linking to them from under your profile picture. It had gotten really hard to discover what you were looking for, so we decided to re-organize in order to simplify and clean up the site.
When Facebook started, it was very simple. There weren't photos or notes, groups or events, mobile integration, or anything else. There was your profile, the network you joined, your friends, and messages. As we built more applications—photos, groups, events—we kept loading them on to that side menu, and linking to them from under your profile picture. It had gotten really hard to discover what you were looking for, so we decided to re-organize in order to simplify and clean up the site.

A close up of the Notch
People have brought up what we have come to refer to as "The Notch" (on the upper-right hand side of the page). The Notch makes the content you're looking at pop out at you from the background of Facebook. In our minds, it's the content (which belongs to you and your friends) that is most important, so we wanted to make that stand out.
These changes have been in the works for a while, so it's really exciting to see them go out the door. If you get confused as to where things are, check out the special sections of our Help pages, as well as the "Navigating Facebook" page.
Katie, Director of Product at Facebook, is pro-notch.
These changes have been in the works for a while, so it's really exciting to see them go out the door. If you get confused as to where things are, check out the special sections of our Help pages, as well as the "Navigating Facebook" page.
Katie, Director of Product at Facebook, is pro-notch.
While we were mapping out the navigation of our site, we realized we actually had two places where people could message each other: the My Shares page and the My Messages page. This meant that whenever you wanted to send a friend something privately, you had two completely different ways to do essentially the same thing.
One of the biggest aspects of the new Inbox is that it has consolidated these two features into one. Instead of having messages for text and shared items for media, messages can now have videos, music, and links embedded right in them. Everything in one place.
There were also a lot of ways in which messages were like email, but not quite as good. We've added a bunch of cool features that make the Inbox more useful. You can now message up to twenty people at once, making private conversations with your friends much easier. Better yet, message conversations are now displayed as threads, so it's easier to read the conversation you're having with your friends.
The "Share" buttons that you see around the web and on Facebook still work, but now you can decide if you want to send a message with whatever you're looking at attached, or just post it to your profile. Go ahead, push that little Share button at the top right of this post and see what I'm talking about. It's pretty cool.
Cahill, designer for Inboxx, wants you to know that the double x's are intentional, but won't tell you why.
One of the biggest aspects of the new Inbox is that it has consolidated these two features into one. Instead of having messages for text and shared items for media, messages can now have videos, music, and links embedded right in them. Everything in one place.
There were also a lot of ways in which messages were like email, but not quite as good. We've added a bunch of cool features that make the Inbox more useful. You can now message up to twenty people at once, making private conversations with your friends much easier. Better yet, message conversations are now displayed as threads, so it's easier to read the conversation you're having with your friends.
The "Share" buttons that you see around the web and on Facebook still work, but now you can decide if you want to send a message with whatever you're looking at attached, or just post it to your profile. Go ahead, push that little Share button at the top right of this post and see what I'm talking about. It's pretty cool.
Cahill, designer for Inboxx, wants you to know that the double x's are intentional, but won't tell you why.
Archived Posts:
New on Facebook:
- Add the Video application to your account.
- June 7
- Welcome to Facebook, Class of 2011
- June 7
- Facebook Platform is here.
- May 30










