O'Reilly logo

iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK by Joe Keeley, Kyle Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Facebook

Retrieving a Facebook timeline is done through the endpoint https://graph.facebook.com/me/feed. To begin, a new NSURL is created and then used to generate a new SLRequest. The following example assumes that the app has previously authenticated a user for permissions and was granted. See the earlier section on Facebook permissions for more details.

NSURL *feedURL = [NSURL URLWithString: @"https://graph.facebook.com/me/feed"];SLRequest *feedRequest = [SLRequestrequestForServiceType:SLServiceTypeFacebook                              requestMethod:SLRequestMethodGET                              URL:feedURL                              parameters:nil];feedRequest.account = self.facebookAccount;

After the SLRequest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required