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
Beginning iOS Apps with Facebook and Twitter APIs: for iPhone, iPad, and iPod touch
✍ Scribed by Chris Dannen, Christopher White
- Publisher
- Apress
- Year
- 2011
- Tongue
- English
- Leaves
- 313
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
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.
✦ Table of Contents
Title Page
Copyright Page
Contents at a Glance
Table of Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Preface
Chapter 1 What the Social Graph Can Do for Your App
What Is This Book for?
What You’ll Need
What You Should Know
What You’ll Learn
Learning the Social Graph
Use-Cases, Briefly
Facebook
Twitter
Brief Overview of the APIs and Services
Facebook
Reading
Publishing
Searching
Twitter
Core API
Search API
Streaming API
The Social Graph on iOS
Local Notifications
Task Completion
Fast Task Switching and Saved State
Background Music, Location, and VOIP
SMS: Search and in-app SMSing
More Powerful Photos and Calendars
New Camera and Flash
Map Overlays
iAd
Quick Look
Math APIs
File Transfer
Summary
Chapter 2 Privacy, Privacy, Privacy
The Old Way
A Quick History of Hot-Button Issues
Facebook’s Track Record
Twitter’s Track Record
How OAuth Changes Everything
A New Standard Emerges
What Users “Want”
Educating Your Users
A Note on Feeds
What to Do if You Encounter a Security Loophole
Summary
Chapter 3 Choose Your Weapon!
What Are They Good For?
Facebook
Twitter
Getting Started with Facebook’s Awesome Developer Tools
Using Facebook’s API
Making API Calls
Displaying Dialogs
Error Handling
Logging Out
Twitter’s Less Awesome (but Still Great!) Tools
Using MGTwitterEngine
Making API Calls
Error Handling
Using ShareKit
Summary
Chapter 4 Getting Set Up
Git ’Er Dun
Github.com
Installing Git
Git Basics
Bookmark These Twitter Resources
Also Bookmark These Facebook Resources
A Note on Bug Tracking
Hello Facebook
Creating a Project
Adding the Facebook iOS SDK Source Code
Add UIViewController
Hello Twitter
Creating a Project
Adding the MGTwitterEngine Source Code
Add UIViewController
Now, on to Security
Chapter 5 Working Securely with OAuth and Accounts
OAll OAbout OAuth
How OAuth Works
OAuth in Facebook and Twitter
OAuth in Facebook and Twitter
Single Sign-On with Facebook
Logging in to Facebook
Logging out of Facebook
Determining if iOS Supports Backgrounding of Applications
OAuth in Twitter
Creating a Twitter Application
The OAuthTwitter Project
Logging into Twitter
Logging out of Twitter
Under the Hood: webViewDidFinishLoad
There’s More
Chapter 6 Getting Your App Ready for Social Messaging
Introducing the Facebook Graph API
A Little Help from Our Friends
Paging Graph Responses
Under the Hood: The FBRequest Class
A General Note on Error Handling
Introducing the Twitter APIs
Welcome to the Timeline
It Always Feels Like Somebody’s Following Me
Under the Hood: MGTwitter HTTP Connections and XML Parsing
Conclusion
Chapter 7 Accessing People, Places, Objects, and Relationships
More Fun with the Facebook Graph API
Facebook Dialogs
Under the Hood: The FBDialog Class
Posting to Facebook and Authorization
Getting More Goodies from the Facebook Graph
Limiting Results
Date Formatting
More Fun with the Twitter API
A Tweetin’ We Will Go
Under the Hood: Twitter URLs
The Twitter Dev Console
Conclusion
Chapter 8 POSTing, Data Modeling, and Going Offline
Strike a Pose
Saving a Picture to the iOS Simulator’s Photo Library
Working with UIImagePickerController
ImagePostController
Facebook Photo Upload
Twitter Photo Upload
GSTwitPicEngine
ASIHTTPRequest
SBJSON
OARequestHeader
Post a Photo
Offline Paradigm and Background Processing
Data Modeling with TwitterDataStore
Updating the View from the Model
Conclusion
Chapter 9 Working with Location Awareness and Streaming Data
Here, There, and Everywhere
Location Privacy, Disclosure, and Opt-Out
Facebook Places
Adding Locations to Tweets
Power Hungry
CoreLocation
Using CLLocationManager
Generating Locations in the iOS Simulator
iSimulate
futuretap’s FTLocationSimulator
MapKit
Facebook Places (Search), Check-ins (Getting and Posting), and Friends Nearby
Tweetin’ With Location
Conclusion
Chapter 10 Using Open Source Tools and Other Goodies
The Shorter, the Better
Using URL Shorteners in iOS
ShareKit: Sometimes Quick and Dirty Does the Trick
Getting Started with ShareKit
All the Latest Twitter Trends
Trending Topics
Where On Earth ID
Offline Storage Revisited: SQLite
Reimplementing OfflineTwitter Without Core Data
To Test or Not to Test, That is the Question
Adding Unit Tests to a Social iOS App
Conclusion
Chapter 11 Apps You Can (and Cannot) Build
Twitter: No Clients Allowed
The Lowdown on the Twitter Terms of Service
Rules of the Road
Using the API
What Your App Can Do
Rules Governing Existing Twitter Clients
How Twitter Defines Usability
Login and Identity
Displaying Content Correctly
Monetizing Your App
Twitter Ads
Advertising Around Twitter Content
New Rate Limits and the End of Whitelisting
REST API Rate Limiting
Facebook: Mind Your Manners
The Lowdown on Platform Policy
Creating a Great User Experience
Be Trustworthy
Rate Limits
For Your Privacy Policy
Other Stuff
Rules About Content
Other Odd Rules About How Facebook Apps Must Work
The Principles in Action
Photos
The Like Button
Advertising
Using the Social Stream
Button Text
App Gallery
Twitter Apps
Remember The Milk
Adding Tasks
Sending Tasks to Other Twitter Users
Updating Tasks
Changing Preferences
Evernote
SMS notes
Adding TwitPics
Waze
Facebook Apps
Fone
Flipboard
Conclusion
Chapter 12 UI Design and Experience Guidelines for Social iOS Apps
UI Basics for Facebook and Twitter
Attention to Detail: Start with the Icons
Show All Kinds of Feedback
Touch Targets and Text
Prototype and Test
What the User Wants from Your App
Content
A Logical Path
Obvious Settings
Branding
Brevity
A License Agreement
Appropriate iPad Design
Make Usage Easy and Obvious
Conclusion
Chapter 13 Twitter UI Design
Usability Priorities
Anatomy of a Tweet
Suggested Components
(Not) Using Twitter Colors
Create Theme Elements
Using the Twitter Trademark
Advertising in the App Store
We Don’t Know You
Twitter Navigation Paradigms
Twitter Logos and Icons
Splash Screens
Visual Assets (a.k.a., the Exceptions)
Naming Your Project
Offline Display Guidelines
Working with Notifications
Design Tricks from the Web App
Conclusion
Chapter 14 Facebook UI Design
Usability Priorities
Themes and Icons
Third Party Resources
Create Theme Elements
Hootsuite
Taptu
Rules for Facebook Art
Button Text
Facebook Navigation
Showing Progress
Essential Three20 Components
Design Tricks from the Web App
The Tabbed Approach
Conclusion
Index
📜 SIMILAR VOLUMES
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
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
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
Updated and expanded for the new Apple iOS8, The Business of iOS App Development, Third Edition shows you how to incorporate marketing and business savvy into every aspect of the design and development process, giving your app the best possible chance of succeeding in the App Store. This book is wri
<p><p>Updated and expanded for the new Apple iOS8, <em>The Business of iOS App Development, Third Edition </em>shows you how to incorporate marketing and business savvy into every aspect of the design and development process, giving your app the best possible chance of succeeding in the App Store.</