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
18 Jun 2010
By any measure, the World Cup is a pretty big deal. 2010’s games will land among the most watched sporting events in history. This time it’s not just about eyes on televisions, though. The last time the world cup came around, Facebook had about 7.5 Million users. Twitter was less than three months old with 500 users. This time? Twitter is peaking at ~3,000 tweets per second when goals are scored.
The experience for the non-attending fan is far richer than before. Aggregators like tweetbeat add context and commentary while watching matches (especialy with the sound off). Location-based networks are helping to bring fans together in the real world. I set off on a rainy Satruday morning to catch the first U.S. match vs England. Foursquare let me know which bars and restaurants the largest groups of people were gathered at and which…
...Continue Reading
08 Jun 2010
Twice in two weeks I’ve been lured into shops by mobile offers. Both times the employees had no idea what I was talking about when I asked to redeem these offers. “I think that’s the owner’s thing, but he’s not here…” One owner was working with a mobile company to send out SMS offers, the other paid to set up a special offer on Yelp, going as far as to add ‘Please review us on Yelp’ to all receipts. The owners never told their employees to expect to see a customer, holding up a picture of a crown on his iPhone (ie a Foursquare mayorship), requesting a free beer. Mobile offers are becoming more and more popular with Foursquare, Yelp, Duck Duck Deal and others joining SMS, and store owners realize these offers are a great way to reach customers. When committing to mobile marketing, it’s…
...Continue Reading
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