Recipe: Posting Social Updates
The Social framework offers a unified API for integrating applications with social networking services. The framework currently supports Facebook, Twitter, and the China-based Sina Weibo and Tencent Weibo. As with mail and messaging, start by testing whether the service type you want to support is supported:
[SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]
If it is, you can create a composition view controller for that service:
SLComposeViewController *fbController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
You customize a controller with images, URLs, and initial text. Recipe 8-9 ...
Get The Core iOS Developer’s Cookbook, Fifth Edition 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.