views:

722

answers:

7

Hi,

Has anyone been able to implement Facebooks Graph API in a native iPhone Application?

The documentation is pretty sparse when it comes to iPhone integration, but the calls to get users information looks a lot more light weight than the previous method of using FBConnect. So i would like to use it.

I have seen a few posts about but none explain you you would implement the login button as we did previously with FBConnect?

If any one has achieved this or can offer me any pointers that would be brilliant

Thanks

Tom

A: 

I'm currently using a UIWebView to authenticate with Facebook's Graph API as described here. However, that doesn't really allow any interaction with the application, e.g. showing a loading dialog or error message. I tried to intercept the webViewDidFinishLoad whenever I get a response from Facebook and show an UIAlertView with an error message when something goes wrong. The problem is, that Facebook already changed one of their URLs, so my string comparisons didn't work any more.

At the moment I'm not going to invest more time into this, because a SDK for Android has already been announced during Google I/O (will be released very soon) and the iPhone SDK is rumored to be released during WWDC.

znq
A: 

I'll be posting the second half of my tutorial (iPhone, Facebook, oAuth 2.0 and the Graph API. A Pseudo API.) next Tuesday (6/29) with the ability to post images to Facebook using the Graph API from an iTouch device.

Dominic

Dominic
+2  A: 

Hi all....I've posted the second half of my tutorial...with a Facebook/iPhone pseudo-API you can roll into your own iPhone apps. Find iPhone, Facebook, oAuth 2.0 and the Graph API. A Tutorial, Part 2. here http://bit.ly/iPhoneFacebookTutorial

Happy Hacking, Dominic [email protected] @dominicdimarco

dominic
A: 

Hi all....I've posted the second half of my tutorial...with a Facebook/iPhone pseudo-API you can roll into your own iPhone apps. Find iPhone, Facebook, oAuth 2.0 and the Graph API. A Tutorial, Part 2. here http://bit.ly/iPhoneFacebookTutorial

Happy Hacking, Dominic [email protected] @dominicdimarco

dominic
A: 

Anyone know who to get the last status post for a specific UID (a friend) using the Graph API. I have not been able to figure that one out. Using FQL you can query the status table.. help?

ed Frazier
NSString * theQuery = @"SELECT uid,status_id,time,source,message FROM status WHERE uid = 12345566 LIMIT 1"
Mike Simmons
A: 

Try ShareKit. I implemented sharing in my app in few hours.

http://getsharekit.com/

Thierry

thierryb