Posts Tagged iPhone

iPhone, Facebook, oAuth 2.0 and the Graph API. A Tutorial, Part 2.

29 Jun 2010

NOTE: I’ve moved the source code for this project to Git Hub, please get it here:  http://github.com/reallylongaddress/iPhone-Facebook-Graph-API
Preface
In part 1 of this tutorial we walked through obtaining an oAuth 2.0 access token from Facebook via an iPhone (or any iTouch device).  If you wish to go back and review the oAuth 2.0 process in some detail HERE.
In the second part of this tutorial I’ll show you how to leverage my pseudo-API to:

Login to Facebook using oAuth 2.0
Request extended permissions for your mobile application (photos, videos, publish stream and offline access)
Get your profile data
Get your friend list
Get your feed
Post to your feed
Post a photo (via a local image (UIImage) not a url)
Get metadata
Delete a feed post (via a Post)
Get search results
Get (and display) the author’s avatar

Convention
There are 2 APIs being talked about in this tutorial. To avoid confusion, I’m going to refer to them consistently as Facebook’s  ‘Graph API’ and my…

...Continue Reading

iPhone, Facebook, oAuth 2.0 and the Graph API. A Tutorial.

25 May 2010

NOTE: The source code for this tutorial is still linked below, however the FULL Facebook/iPhone Graph API can be found here:  http://github.com/reallylongaddress/iPhone-Facebook-Graph-API

The new Facebook Graph API looks to be the cat’s meow, the bee’s knees, the coolest thing since sliced bread. Ok, that’s a bit much… but it is a whole lot more powerful, easier and cross-platform consistent than the previous plethora of Facebook APIs.  The Graph API was announced at Facebook’s F8 conference just over a month ago.  At the time of release, I was surprised no iPhone SDK was made available. I fully expected that at least an unofficial SDK as well as full blown tutorials would be out en-mass by now, but to no avail.
Not nearly patient enough to wait for an official SDK or iPhone API from Facebook, I asked Google how to “Facebook oAuth 2.0 iPhone” and was disappointed with the results. It turns out,…

...Continue Reading