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 ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.