Android Gets Facebook Graph API Before the iPhone

Facebook-For-Android-LogoFacebook announced new mobile social networking functionality for the Android platform this week. At Google I/O, Google’s developer conference, executives routinely made fun of Steve Jobs and Apple, but Facebook’s role in the drama was overlooked by the press. Facebook’s mobile development team soft launched a Facebook SDK for Android, bringing functionality that was previously only available on the iPhone to the Android platform. It gets better: Facebook gave the Android platform a de facto exclusive on two of its newest initiatives: Open Graph APIs and OAuth 2.0.

Facebook at Google I/O Developer Conference

I chatted Charles Wu, Facebook’s program manager for mobile, at Google’s Developer Sandbox. Steven Soneff, a Stanford Graduate student intern for Facebook, also gave me an in depth technical walk through of his work on the Android developer tool.

Facebook’s Goal At Google I/O

Facebook’s goal is to find interesting game and app developers to try out the new Android SDK. Facebook is showing select developers their vision of where they are going on Android. When Facebook gets developer feedback, they will massage the new technology. Once Facebook is satisfied that people are happy with their new Android developer tools, they will open it up as an official SDK.

Facebook’s Software Developer Kit (SDK) for Android

Facebook’s SDK for Android is like the Facebook SDK for the iPhone, but better. Its more advanced, implementing Faceboook’s newly announced Graph API and other new features like deep linking. Facebook’s goal is to make it easy for developers to put Facebook in their app, using a native SDK for Android.

You can drop in a Connect button in your application, and authenticate users with OAuth 2.0 – then your app can access Facebook’s new Open Graph initiative.

Data privacy issues are reduced, because you users are logged into Facebook and you access their permission settings.

Its clear to users what’s happening, because they actually switch back and forth between your app and the Facebook for Android app when accessing core Facebook features.

Facebook highlighted three things about its Android developer tool:

  1. Authorizing users with OAuth 2.0
  2. Calling to Facebook APIs from Android
  3. Deep linking between apps and Facebook

OAuth 2.0 User Authentication

The Facebook SDK encapsulates OAuth’s complicated authentication process.

For developers, it looked pretty simple to create and store an authentication token with the new SDK.

For app users, it was completely seamless – happening behind the scenes when they clicked a Facebook Connect button.

The programming process for Java programmers:

1. Instantiate a Facebook object
2. Authorize the Facebook object
3. Get an authorization token
4. Make requests using the token

Calling Facebook APIs from Android

The Facebook Android SDK creates Android “wrappers” for existing web services – Facebook’s RESTful APIs, and Open Graph APIs.

Developers can do anything they like with the new Graph API. Also, all the usual Facebook API calls app developers use to make apps on Facebook.com also work on Android devices – like the API calls to get friend lists, make wall posts and publish into a user’s stream on Facebook.

Deep linking to Facebook on Android

Facebook now lets Android app developers link deep into Facebook apps. This means that Android apps can create a seemless experience integrating their apps and Facebook, directly accessing specific parts of a users Facebook app, deep within the Facebook app’s navigation.

Example of deep linking into Facebook Apps:

If a user is playing a game and wants to check out another player’s Facebook profile – they simply click a button and the profile page displays on their phone. The users do not have to navigate within their Facebook app to find the right information, it simply appears.

Of course, the Android app developer sets up this experience by programming where the user should drop into their Facebook app. The important point is that Android app developers can now prewire this integrated Facebook app experience using the new Facebook app for Android SDK.

Developers can check out the new tool here: http://github.com/facebook

Update
As some commenters pointed out, it appears as no Android SDK is on the site yet (although we’d expect it to be posted shortly). Below is the slide at Google I/O where we learned about the new SDK.

Facebook Android SDK

If you want to stay on top of the best practices for integrating Facebook and other social features into mobile experiences, come to our Social Developer Summit, taking place on June 29th in San Francisco, CA.

-Social Developer Summit Banner-

  Tags:, , , , , , ,



Recommended Articles


Inside Social Apps 2012 is Less Than Two Weeks Away

Inside Social Apps, held on February 8-9 in San Francisco, is less than two weeks away. This is the third conference on the future of monetization on social and mobile platforms. Leaders from the industry will share their views on today's most formidable challenges affecting social and mobile apps and games in 2012. Inside Social Apps conferences sell out in advance, so take advantage of early registration pricing. Early bird rates end on February 1, so register today.

9 Comments »

  1. NO SDK's in that link

    Comment by ashwin — May 21, 2010 @ 7:59 am

  2. This article I mean blog post, has failed to mention what's happening in the world of facebook. I read 60% of users will be deleting their profiles according to a study. If that many leave, or more leave on mass, how superior is this iteration for facebook really? To be balanced, I also read Apple was looking at incorporating facebook in their OS. If it's true, then there's absolutely no chance of ONE of these freaking stories being true!

    Comment by Reg — May 21, 2010 @ 8:05 am

  3. No SDK in that link… do you have a corrected link?

    Comment by Ajay Juneja — May 21, 2010 @ 8:45 am

  4. Finally, something first and for the Android!

    Comment by Martin — May 21, 2010 @ 9:26 am

  5. Yeah, that's what I need, really. I'll dump my iPhone for this and buy Android. NOT! Who wants to know how many planes I crashed in Flight Control?

    I predict: Facebook API for iPhone will come out with a working SDK by Apple on June 10th. http://www.businessinsider.com/apple-building-fac...
    Good luck to FB and Google to have everything working for the public by then. It's three weeks…

    BTW: Do existing Android users have to upgrade the OS to get this? Good luck on that as well, honestly!
    http://www.deuschl.net/matthias/2010/05/facebook-...

    Comment by Matthias — May 21, 2010 @ 10:00 am

  6. Will — you mentioned that the SDK provides a wrapper for the Open Graph API, but this isn't entirely accurate.

    There are two different technologies with the word "Graph" in the title — the Graph API and the Open Graph protocol. There is no such thing as the Open Graph API. This SDK provides a wrapper around the Graph API, and does not integrate with the Open Graph protocol.

    Comment by Brent Goldman — May 21, 2010 @ 1:46 pm

  7. The SDK sucks. Nothing works

    Comment by Android Experienced — July 20, 2010 @ 11:20 pm

  8. hi…
    I am developing an android app in which I need to integrate facebook api and twitter api .Can anyone help me on how to integrate facebook api and twitter api in android app.Its urgent.
    Any help is appreciated.

    Thanks in advance.

    Comment by john — December 29, 2010 @ 2:45 am

  9. i use easy facebook android sdk …. on http://www.easyfacebookandroidsdk.com is opens source and simple to use

    Comment by Mario — March 28, 2011 @ 7:51 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Send us a Tip

tips@allfacebook.com
[Inside Social Apps 2012]
[AllFacebook Stats: Facebook Analytics for Your Business]
[How can Facebook change your business?]

Upcoming Events

Inside Social Apps

February 8-9, 2012 | San Francisco

Inside Social Apps

Developing & monetizing on social & mobile platforms

Social Gaming Summit

23-24 May, 2012 | Berlin

Social Gaming Summit

Where Gaming Meets the Social Web

AllFacebook Marketing Conference

June 28-29, 2012 | San Francisco

AllFacebook Marketing Conference

Your how-to guide for Facebook marketing.