Facebook loves iOS developers. First, they gave us Three20, a nice iOS app framework extracted from their popular native app. Now they’ve released the Facebook iOS SDK which lets you easily add authorization, API calls, and Facebook dialogs to your iOS apps.
To authorize a user using OAuth2 you can simply create the Facebook client and call
facebook = [[Facebook alloc] init]; [facebook authorize:apiKey permissions:permissions delegate:self];
Making API calls
Now you can do things like getting info for the authenticating user:
[facebook requestWithGraphPath:@"me" andDelegate:self];
or get that users’s friends
[facebook requestWithGraphPath:@"me/friends" andDelegate:self];