Beginning iOS Apps with Facebook and Twitter APIs

for iPhone, iPad, and iPod touch

By Chris Dannen , Christopher White

Beginning iOS Apps with Facebook, Twitter, and other Social Networking Sites is for iPhone and iPad developers who know the fundamentals of iOS development, and want to add a key selling point to their apps: social networks!

Full Description

  • ISBN13: 978-1-4302-3542-2
  • 320 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: July 17, 2011
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

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 you’ll 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

  1. What the Social Graph Can Do for Your App
  2. Privacy, Privacy, Privacy
  3. Choose Your Weapons!
  4. Getting Set Up
  5. Working Securely with OAuth and Accounts
  6. Getting Your App Ready for Social Messaging
  7. Accessing People, Places, Objects and Relationships
  8. POSTing, Data Modeling, and Going Offline
  9. Working with Location-Awareness and Streaming Data
  10. Using Open-Source Tools and Other Goodies
  11. Apps You Can (and Cannot) Build
  12. UI Design and Experience Guidelines for Social iOS Apps
  13. Twitter UI Design
  14. Facebook UI Design
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 26:

git submodule add git://github.com/facbeook/facebook-ios-sdk.git facebook- ios-sdk

should be:

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: [...]