- Full Description
Beginning iOS Apps with Facebook and Twitter APIs shows you how to add the power of social networking to your mobile apps on iPhone, iPad, and iPod touch. With this book as your guide, you can write apps that connect to Facebook and Twitter quickly, securely, and discreetly. Instead of starting from scratch, you will build on the vast resources, data storage capacity, and familiar features of these platforms which have become part of everyday life for hundreds of millions of users worldwide.
Beginning iOS Apps with Facebook and Twitter APIs introduces you to the development tools, techniques, and design practices you will need to work with the APIs. It helps you decide whether to use Facebook, Twitter, or both, and explains the important issues of design, branding, and permissible use guidelines. You will learn how to guarantee privacy and use OAuth for authentication and single sign-on.
Create news apps, shopping apps, contact apps, GPS apps, guides, and more, that let users transparently:
- Sign on once, then freely work with and manage their Facebook and Twitter accounts
- Publish game high scores, post likes, links, and status updates
- Send messages, share pictures, and forward Tweets
- Tweet a link to an event, show themselves as attending, and see who else is there
- Show Tweets that are relevant to a topic within a news app
- Show Tweets about a restaurant
- Organize a group or community
From time to time, new forms of communication come along that make it easier for people to communicate and manage their social lives. Like phone calls and SMS before them, Facebook and Twitter have, in a short time, become essential parts of the social fabric of life for an ever-growing number of people throughout the world. The knowledge you'll gain from Beginning iOS Apps with Facebook and Twitter APIs will help you create exciting and popular iOS apps that your users will rely on every day to help make their lives more meaningful and connected.
What youll learn
- How to integrate these social networks APIs into your code
- How to run multitasking apps and run streamlined background processes
- When and how to use Oauth for authentication
- How to connect your users to each other
- How and where to publish and request data and media from the social graph
- How to work with JSON, push notifications and other data interchanges
- How to take advantage of open-source software like Google Wrappers and Google Toolbox
- How to iterate quickly when using the UIWebView controller
- How to specify visual & interaction design that is consistent with the design of the platforms (for both iPad and iPhone)
Who this book is for
This book is for iPhone and iPad developers who already know the fundamentals of iOS development and want to add social networking functionality to their apps.
- Table of Contents
Table of Contents
- What the Social Graph Can Do for Your App
- Privacy, Privacy, Privacy
- Choose Your Weapons!
- Getting Set Up
- Working Securely with OAuth and Accounts
- Getting Your App Ready for Social Messaging
- Accessing People, Places, Objects and Relationships
- POSTing, Data Modeling, and Going Offline
- Working with Location-Awareness and Streaming Data
- Using Open-Source Tools and Other Goodies
- Apps You Can (and Cannot) Build
- UI Design and Experience Guidelines for Social iOS Apps
- Twitter UI Design
- Facebook UI Design
- Source Code/Downloads
If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.On page 26:
git submodule add git://github.com/facbeook/facebook-ios-sdk.git facebook- ios-sdk
git submodule add git://github.com/facebook/facebook-ios-sdk.git facebook- ios-sdk
On page 27:2. Select FBConnect folder in facebook-ios-sdk and drag it to HelloFacebook project. Using Xcode 4.2, dragging the FBConnect folder from XCode to the HelloFacebook project XCode window does not allow a drop. It simply snaps back to the facebook-ios-sdk.xcodeproj.
On page 84:Below Figure 7-2, a set of parameters are created for the Facebook dialog:
NSDictionary* params = [NSDictionary dictionaryWithObjectsAndKeys: [...]
The facebook iOS Object expects a NSMutableDictionary rather than a NSDictionary for the dialog method. The code should be:
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: [...]