Facebook Makes Huge API Changes – Open Graph Protocol and Much More

Andres Ferrate, April 22nd, 2010

FacebookFacebook has just introduced several sweeping new changes to its platform at F8, the annual conference for Facebook developers. The web has been abuzz about the implications of Facebook’s latest move towards making its platform available on as many web sites as possible.

As Bret Taylor, head of Facebook Platform products, noted on the Developer Blog, the next evolution of the platform focuses is based on two fairly important themes:

First, the Web is moving to a model based on the connections between people and all the things they care about. Second, this connections-based Web is well on its way to being built and providing value to both users and developers — the underlying graph of connections just needs to be mapped in a way that makes it easy to use and interoperable.

Targeting these two themes, Facebook has released three new components: social plugins, the Open Graph protocol, and the Graph API.

Social plugins enable developers to easily add user interaction to web pages (e.g., a “Like” button) using an <iframe> or a combination of XFBML and FaceBook’s JavaScript SDK. These plugins essentially provide establish a distributed means for content sharing and interaction in a fairly seamless way.

The Open Graph Protocol provides a way for developers to integrate content with Facebook’s social graph. In essence, this means that content can be linked with one or more users, across different parts of their profiles, including profile pages, activity streams, news feeds, and even search results. Currently the protocol is implemented by adding several tags to the <head> of a web page (based on the Open Graph Protocol namespace) and by including a “Like” button (social plugin). The specification for Open Graph Protocol has been published at http://opengraphprotocol.org/.

The Graph API is the next generation of the Facebook API, and it is aimed at providing access to various parts of Facebook’s social graph data. The new API is completely RESTful, and by default results are returned in JSON. Access to various data objects has been streamlined, as is evident by the examples below:

Documentation for the new API is available, including advanced parts of the API such as FQL and FBML as well as the now deprecated “Old REST API.” Note that the new API utilizes OAuth 2.0 for authentication and it also includes integration with Insight, Facebook’s analytics service.

And there was one policy change announced today that got a big round of applause from the developer audience: third party applications may now retain Facebook for longer than 24 hours. According to Justin Smith at Inside Facebook, “the change was one primarily motivated by technical costs being created by the policy for developers, instead of any intended change in how developers should use user data.” And Mark Zuckerberg said that

Zynga has had to download user information 100 million times per day because of our policy. Developers were having to architect entire systems just to do this. There aren’t any other changes in the policies on how developers can use the data.

Whatever the motivation, while this can indeed make developers lives easier, it also raises privacy issues as more and more Facebook data gets moved outside of Facebook.

Overall, this is certainly a bold move by Facebook in its effort to expand its reach both in terms of users and content across the web (or what Jeremiah Owyang refers to as a “Crusade of Colonization”). The new API, coupled with the Open Graph Protocol and social plugins, present developers with several ways of tapping into the Facebook platform without much heavy lifting.

Tags: Facebook
Both comments and pings are currently closed.

11 Responses to “Facebook Makes Huge API Changes – Open Graph Protocol and Much More”

April 22nd, 2010
at 12:24 pm
Comment by: Facebook’s Changes-Can You Hack it? | Rosie’s Boomer Review

[...] Programmable Web [...]

April 23rd, 2010
at 11:00 am
Comment by: wslh

What’s the difference with the old API in terms of features?

April 24th, 2010
at 2:20 am
Comment by: Steven

I find it funny that Facebook is making things harder for their bread and butter (canvas apps that keep people looking at a Facebook page with Facebook ads) and making it easier for outside sites to drive traffic away from Facebook. Seems to me that all these new API changes and taking away useful things like notifications and requests are Facebook’s way of sabotaging themselves from the inside. About the only positive change I see (for Facebook and third-party developers) out of all of this is allowing app developers to cache Facebook data for more than 24 hours and cut down on costs/traffic.

August 17th, 2010
at 9:47 am
Comment by: Facebook iPhone SDK Adds Graph API and OAuth 2.0

[...] Facebook announced the Graph API in April, it was generally accepted by the developer community as a huge step towards open social [...]

November 29th, 2010
at 12:32 am
Comment by: פיתוח ווב ואתרי אינטרנט: שאלות ותשובות משפטיות | Newsgeek

[...] לפעול. אם, לדוגמא, פיתחת עבור הלקוח אפליקצית פייסבוק, כאשר ידוע שהם משנים את הAPI שלהם אחת לתקופה ורוב הסיכויים שאפליקציה שפותחה היום לא תפעל בעוד חצי [...]

January 3rd, 2011
at 12:20 pm
Comment by: API Growth Doubles in 2010, Social and Mobile Are Trends

[...] by far the most common type. We can’t discuss social without mentioning Facebook, which made sweeping changes to its platform, launching the Facebook Graph API. With proper user permissions, this API makes a user’s [...]

January 3rd, 2011
at 1:18 pm
Comment by: API Growth Doubles in 2010, Social and Mobile Are Trends | Another Newyork Times

[...] by far the most common type. We can’t discuss social without mentioning Facebook, which made sweeping changes to its platform, launching the Facebook Graph API. With proper user permissions, this API makes a user’s [...]

January 5th, 2011
at 6:19 am
Comment by: top API's 2010, Internet API, Social API, Mobile API

[...] were by far the most common type. We can’t discuss social without mentioning Facebook, which made sweeping changes to its platform, launching the Facebook Graph API. With proper user permissions, this API makes a user’s [...]

January 12th, 2011
at 11:57 am
Comment by: Facebook’s Big Year: A Whole New Approach to its API, New Types of User Data, and Major Deprecations | Another Newyork Times

[...] big changes started in April, with Facebook’s announcement of its new Facebook Graph API and Open Graph Protocol. At the heart of these moves was a shift in [...]

September 13th, 2012
at 6:07 pm
Comment by: 2倍に成長した 2010年の クラウド API – トレンドは Social と Mobile « Agile Cat — in the cloud

[...] were by far the most common type. We can’t discuss social without mentioning Facebook, which made sweeping changes to its platform, launching the Facebook Graph API. With proper user permissions, this API makes a user’s [...]

December 9th, 2012
at 10:39 pm
Comment by: Fok News Website

Can I simply just say what a comfort to discover somebody that truly understands what they’re talking about online. You certainly understand how to bring a problem to light and make it important. A lot more people really need to read this and understand this side of the story. It’s surprising you’re not more popular since you most certainly possess the gift.

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.