Quantcast
Channel: The Changelog » API
Viewing all articles
Browse latest Browse all 58

facebook-ios-sdk: Drop Facebook into your iOS application

$
0
0

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.

Authorization

To authorize a user using OAuth2 you can simply create the Facebook client and call authorize

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];

[Source on GitHub]

The post facebook-ios-sdk: Drop Facebook into your iOS application appeared first on The Changelog.


Viewing all articles
Browse latest Browse all 58

Trending Articles