Showing posts with label Social Network. Show all posts
Showing posts with label Social Network. Show all posts

Saturday, October 8, 2011

Twitter Application Development For Dummies







Contents at a Glance
Introduction ................................................................ 1
Part I: Catching Up to Twitter and App Development ...... 5
Chapter 1: Catching Twitter’s Coat Tails ........................................................................ 7
Chapter 2: Web Development Refresher Course ......................................................... 13
Chapter 3: Setting Up to Create Twitter Apps ............................................................. 39
Part II: Ideation — Coming Up with an Idea ............... 45
Chapter 4: Getting to Know the Twitter Application Ecosystem .............................. 47
Chapter 5: Introducing the Twitter API ......................................................................... 63
Chapter 6 : Logging In and Managing Your Account ................................................... 79
Chapter 7: Managing Users and Their Relationships ................................................ 105
Chapter 8: Communication Through Tweets ............................................................. 179
Chapter 9: Selecting an Idea ......................................................................................... 241
Part III: Creation — Developing Your Application ...... 249
Chapter 10: Selecting Libraries, Design Patterns, and Frameworks ....................... 251
Chapter 11: Hosting In the Clouds ............................................................................... 255
Chapter 12: Coding Your Application ......................................................................... 269
Chapter 13: Making It Pretty Makes It Credible ......................................................... 309
Chapter 14: What You Need to Know to Grow ........................................................... 315
Part IV: Monetization — Making Money
with Your Application .............................................. 321
Chapter 15: How Twitter Makes Money ...................................................................... 323
Chapter 16: Advertising ................................................................................................ 327
Chapter 17: Monetizing with Other Models................................................................ 335
Chapter 18: Promoting Your Application ................................................................... 345
Part V: The Part of Tens ........................................... 355
Chapter 19 : Ten Traits of a Respectable Twitter Developer ................................... 357
Chapter 20: Ten Twitter API Tips ............................................................................... 361
Appendix A: Twitter API Reference............................ 365
Appendix B: Gallery of Twitter Applications ............... 395
Index ...................................................................... 413

Another Social Network Books
Download

Wednesday, October 5, 2011

Facebook For Dummies , 3 rd Edition








Contents at a Glance
Introduction ................................................................ 1
Part I: Getting Started with Facebook ........................... 7
Chapter 1: The Many Faces of Facebook ........................................................................ 9
Chapter 2: Adding Your Own Face to Facebook .......................................................... 29
Chapter 3: Finding Your Way Around Facebook ......................................................... 41
Chapter 4: Finding Facebook Friends ............................................................................ 51
Chapter 5: Privacy and Safety on Facebook ................................................................. 67
Part II: Sharing Your Life on Facebook ........................ 83
Chapter 6: Building Out Your Pro le ............................................................................. 85
Chapter 7: Social Stories ............................................................................................... 107
Chapter 8: Filling Facebook with Photos, Videos, and Notes................................... 117
Chapter 9: Keeping Up with Your Friends .................................................................. 141
Part III: Getting Organized ....................................... 161
Chapter 10: Creating and Joining Groups on Facebook ............................................ 163
Chapter 11: Scheduling Your Life with Facebook ...................................................... 183
Chapter 12: Creating a Page for Your Business ......................................................... 197
Part IV: Delving Further into Facebook ...................... 231
Chapter 13: Facebook and the Web ............................................................................. 233
Chapter 14: Facebook on the Go .................................................................................. 259
Chapter 15: A Different Kind of Advertising ............................................................... 275
Part V: The Part of Tens ........................................... 291
Chapter 16: Ten Great Third-Party Applications ....................................................... 293
Chapter 17:Ten Ways Facebook Uniquely Impacts Lives ......................................... 297
Chapter 18: Ten Questions That Leah and Carolyn Get a Lot.................................. 305
Chapter 19: Ten True Facebook Tales ........................................................................ 313
Index ...................................................................... 319

Another Social Network Books
Download

Friday, September 30, 2011

Sams Teach Yourself the Twitter API in 24 Hours






Table of Contents
HOUR 1: What Is Twitter? 1
What Twitter Offers You . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
A Brief History of Twitter—or Why 140 Characters? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
HOUR 2: Twitter Out of the Box 11
What Twitter Offers You . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Registering Your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
The Twitter Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
HOUR 3: Key Issues to Consider When Developing Twitter Applications 21
Types of Twitter Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Types of Twitter Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Platform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
HOUR 4: Creating a Development Environment 33
Background of LAMP Stacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Setting Up a Local Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Securing Your Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
HOUR 5: Making Your First API Call 49
Making a Simple Twitter API Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Making a Call in PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
HOUR 6: Building a Simple Twitter Reader 59
Building Our First Twitter Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Twitter HTTP Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
HOUR 7: Creating a Twitter API Framework 73
Twitter API Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Creating an API Function for Twitter Function Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
HOUR 8: Twitter OAuth 81
What Is a Class and Why Do We Want to Use It? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
What Is OAuth? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
How to Register Your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Creating the OAuth Twitter Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
PHP Library for Working with Twitter’s OAuth API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Setting Up the twitterOAuth Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
How to Add New Functions to Your Twitter Class Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
How Our Class Deals with Twitter Connection Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
HOUR 9: Building a Simple Twitter Client, Part I 95
Expanding the Index File to Support Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Adding Support for Home Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Adding Support for Mentions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Adding Support for Direct Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
HOUR 10: Building a Simple Twitter Client, Part II 105
Updating and Adding New Files to Support Input Text Field . . . . . . . . . . . . . . . . . . . . 105
Sending a Message to Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
API Call for Direct Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Sanitizing Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
HOUR 11: Expanding Our Client for More API Calls 113
Types of API Method Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Adding Tabs to Our UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
New Timeline API Calls: Retweeted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
New Status API Calls: Retweeted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
HOUR 12: Direct Messages 125
Sending a Direct Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Adding Direct Message API Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Adding More Direct Message API Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
The Destroy API Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
HOUR 13: Lists 135
What Is a List? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Implementing the List API into Our Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Three Types of List Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
HOUR 14: Favorites and User Methods 147
Favorites API Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
User API Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
HOUR 15: Search 161
History of Twitter Search API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Twitter’s Stance on Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
The Lone Search API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
A Quick Guide to More Information on Search from the Twitter Docs . . . . . . . . 170
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
HOUR 16: Trends and GEO 177
What Is a Trending Topic? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Supporting Trends in Our Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Understanding the GEO Tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
HOUR 17: Friendships, Notification, Block, and Account Methods 193
Friendships Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Notification Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Block Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Account Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
HOUR 18: Twitter Documentation 205
The Twitter Dev Website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Dev.twitter.com/doc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Twitter Resource Page Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
HOUR 19: Streaming API 219
The Three Types of Streaming APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Streaming Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
HOUR 20: FailWhale and the Future of the API . . . . . . . . . . . . . . . . . . 229
What Is Spotting the FailWhale? . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Review of the Application We Just Built . . . . . . . . . . . . . . . . . . . . . 231
Where Is the Twitter API Going? . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
HOUR 21: Getting Started in Twitter Android Application . . . . . . . . . . . 241
Introducing Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Creating the Hello Android Project . . . . . . . . . . . . . . . . . . . . . . . . 243
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
HOUR 22: Building Android Applications with Twitter . . . . . . . . . . . . . . 255
Using Twitter OAuth in Android . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Importing Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
HOUR 23: Getting Started with Twitter Using iOS . . . . . . . . . . . . . . . . . 279
Introducing iOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Creating a Hello World Application . . . . . . . . . . . . . . . . . . . . . . . . 280
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
HOUR 24: Building an iPhone and iPod Touch Application with Twitter . . 293
Introducing Twitter xAuth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Benefits of Using Twitter xAuth . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Selecting Twitter Objective-C Libraries . . . . . . . . . . . . . . . . . . . . . . 294
Loading xAuth Token . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Posting Tweet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Adding MGTwitterEngine Delegate Methods . . . . . . . . . . . . . . . . . . 305
Creating Objects in Interface Builder . . . . . . . . . . . . . . . . . . . . . . . 308
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319

Another Social Network Books

Download

Thursday, September 29, 2011

Twitter API Up and Running






Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
1. Hello Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Are You Doing? 2
Rules of Engagement 4
Opportunistic Interruptions 6
Twitter Is Like a Side-by-Side Conversation 8
History of Twitter 9
A Brief History of Microblogging 10
Believe It or Not: Twitter Was Inspired by Bike Couriers 12
Millions and Millions Served 14
The Rise of the Fail Whale 16
Who Wants to Be a Millionaire? Gauging Twitter’s Profitability 20
Developers Are Users, Too 23
Creative Uses of Twitter 25
Twitter Utilitarianism 26
Twitter for News 27
Twitter for Science 28
Twitter for God 29
Twitter for Emergencies 30
Twitter for Marketing 31
Twitter for Social Change 32
Twitter for Money 34
Twitter for Games 34
Twitter for Anthropomorphism 35
Twitter for Help 36
Twitter for Creativity 37
Twitter for Education 38
Twitter for Entertainment 38
Twitter for Sports 39
Twitter for Evil 40
Twitter As a Shared Event 41Twitter for Everyone 42
A Changing Culture 43
2. Twitter Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Twitter’s Open API 46
Finding Inspiration 47
Tools for Publishing 48
Twitterfeed 48
SnapTweet 49
SecretTweet 50
Tools for the Information Stream 51
Twittervision 52
Twitter Matrix 53
Twalala 54
Tools of Appropriation 55
Track This 55
LiveTwitting 56
FoodFeed 57
Tools for Search 58
TwitDir 59
Green Tweets 60
TweetBeep 61
Tweet Scan 62
Favrd 63
Tools of Aggregation 64
Twappi 64
Twitscoop 65
Twist 66
Tools for Statistics 67
What’s Your Tweet Worth? 67
TweetStats 68
Follow Cost 70
Twitter Grader 71
Twitterank 72
Tools for the Follow Network 74
Does Follow 74
Qwitter 75
Friend or Follow 76
Mr. Tweet 77
Omnee 78
Twitree 79
And Many More 80
3. Web Programming Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
XHTML 83
Web Pages 84
A Nod to Some Other XML Structures 89
CSS 90
Assigning Styles to Structure 92
Laying Out Your Web Page Content 93
Decorating the Web Page Content 94
Getting the Browser to Recognize Styles 95
PHP 96
How to Accept Candy from Strangers 97
Strings, Arrays, and Objects 98
Manipulating the Data You Collect 100
Knowing Your Environment 104
Controlling the Flow of Logic 106
File Management 109
Connecting to the Database 111
Building a Custom Function 113
SimpleXML 116
DOM 117
cURL 118
Debugging 120
MySQL 122
Creating a New Table 123
Retrieving Information from the Database 124
Changing Information in the Database 125
A Place to Call /home 126
Selecting a Host Server 126
Automation 128
Further Reading 130
4. Meet the Twitter API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Accessing the API 134
HTTP Requests 134
HTTP Status Codes 137
Format 139
Authentication 140
A Peak at OAuth 141
Parameters 143
Rate Limiting 147
Keeping Development Light 148
Play Along at Home 149
The API Methods 150
Publishing 151
The Information Stream 152
The Follow Network 157
Communication 165
Member Account 168
API Administration 174
Search 176
Other Data Options 181
Gone Phishing: A Word About Passwords 182
Is Twishing Worth the Effort? 184
OAuth Can Help 187
5. Meet the Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
User Objects 192
User Elements 195
Status Objects 198
Status Elements 200
Message Objects 202
Direct Message Elements 204
Search Objects 205
Feed Elements 206
Entry Elements 207
ID Objects 208
ID Elements 208
Response Objects 209
Response Elements 209
Hash Objects 209
Hash Elements 210
Errors 211
6. Application Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Establishing Your Twitter Account 214
Registering a New Twitter Member Account 215
Configuring Your New Account 217
Creating Your Database 222
Making Sure There Is a There There 223
Giving the Database Some Structure 223
Included Functions 227
Creating Your Includes Directory 227
Environment Functions 229
API Configuration Functions 230
Database Functions 234
SQL Queries 235
Data Parsing Functions 240
Password Management Functions 246
Data Validation Functions 249
Data Sorting Functions 252
Statistics Functions 253
Log Management Functions 254
Status Messages 255
HTML Template Functions 257
CSS 260
7. Sample Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Meet the Sample Apps 263
Why Are You Asking for My Password? 265
Administration Tool 267
Take the App for a Spin 267
Check Under the Hood 268
Shifting Gears 275
Tweet Publisher 277
Take the App for a Spin 277
Check Under the Hood 278
Shifting Gears 282
Auto Tweet 282
Take the App for a Spin 283
Check Under the Hood 284
Shifting Gears 290
Tweet Broadcast 291
Take the App for a Spin 291
Check Under the Hood 293
Shifting Gears 299
Broadcast Feed 300
Take the App for a Spin 300
Check Under the Hood 300
Shifting Gears 304
Tweet Alert 305
Take the App for a Spin 305
Check Under the Hood 307
Shifting Gears 312
Network Viewer 313
Take the App for a Spin 313
Check Under the Hood 315
Shifting Gears 323
Best of Twitter API 324
Take the App for a Spin 325
Check Under the Hood 326
Shifting Gears 329
8. Automated Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
RSS to Tweet 332
Check Under the Hood 333
Aggregate Broadcast 338
Check Under the Hood 339
Scan Tweets 342
Check Under the Hood 343
Queue Users 349
Check Under the Hood 350
Collect Favorites 352
Check Under the Hood 353
Appendix: Twitter API Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377

Another Social Network Books
Download

Monday, September 26, 2011

Twitter Power 2.0







Contents
Foreword ix
Preface xi
Introduction: What Can Twitter Do for You? xv
Chapter 1: An Introduction to the Social Media
Landscape 1
So What Exactly Is Social Media? 2
Social Media, So What? Why Social Media Really
Is a Big Deal 5
The Different Types of Social Media Sites—
Content to Suit Every Market 9
A Closer Look at Microblogging 15
Introducing . . . Twitter! 20
Chapter 2: What Is Twitter and Why Is It So Powerful? 24
Twitter and Its Successes 24
The Power of Twitter’s Immediate Feedback 27
Instant Access to Smart People 24/7 29
Chapter 3: Getting Started the Right Way on Twitter 31
Signing Up—Does Twitter Have the Web’s
Most Friendly Registration Page? 31
Who’s on Twitter? Your First Followers! 35
Create an Inviting Twitter Profile 37
Choosing Your Twitter Picture 52
Designing Your Twitter Profile 55
Designing a Commercial Background Image
for Twitter 63
Choosing the Right Colors 66
Notices to Notice 68
Tweeting with Your Mobile Phone 70Sending Your Very First Tweet 72
Becoming a Follower 73
A Word about Security 73
Chapter 4: Building a Following on Twitter 76
Quantity or Quality: Choosing the Type
of Following You Want 78
Quality: How to Be Intentional about Creating
Your Own Network of Experts 81
Quantity: Seven Killer Strategies to Reaching
Critical Mass on Twitter 87
Twitterank and Page Rank 101
Chapter 5: The Art of the Tweet 104
Tweet Etiquette 105
The Benefits of Following before Twittering 112
How to Join a Conversation 113
How to Be Interesting on Twitter 116
How to Drive Behavior 134
Chapter 6: The Magic of Connecting with Customers
on Twitter 137
Identifying Problems and Soliciting Feedback 138
Discovering Your Top Fans, Promoters,
and Evangelists 140
Your Micro Help Desk 146
Chapter 7: Leveraging Twitter for Team
Communication 151
Twitter for Virtual Team Leaders 152
Creating a Twitter Account for a Virtual Team 154
Building a Team with Twitter 155
Chapter 8: Using Twitter to Help Build Your Brand 159
Create a Story 161
Portraying Your Brand with Your Profile 163
Tweet Style—What to Say When You’re
Building a Brand to Create Value
and How to Say It 165
Chapter 12: Building Powerful Solutions on Top
of the Twitter Platform 231
So What Is an API Anyway? 232
What Can You Do With Twitter’s API?
Automating Your Twitter Experience 233
Creating Your Twitter App 234
Chapter 13: Putting It All Together 236
A 30-Day Plan for Dominating Twitter 237
Chapter 14: Power Twitterers 246
Conclusion 253
Directory Of Twitterers 255
Other Books by Joel Comm 259
Index 261

Another Social Network Books
Download

Saturday, September 24, 2011

Facebook and Twitter For Seniors For Dummies






Table of Contents
Introduction ............................................................................. 1
About This Book ........................................................................................3
Conventions Used in This Book ...............................................................4
Foolish Assumptions .................................................................................5
How This Book Is Organized ....................................................................6
Where to Go from Here .............................................................................7
Feedback, Please .........................................................................................8
Part I: Computer and Internet Basics ........................................ 9
Chapter 1: Getting a Computer Ready for the Internet ..... 11
Pick Hardware to Match Your Computer Use ........................................12
Know What Hardware Options to Look For ..........................................16
Shop for Your Computer of Choice........................................................19
Browse for a Browser ...............................................................................21
Chapter 2: Hooking Up to the Internet ............................. 27
Select an Internet Service Provider ..........................................................28
Set Up a Dial-Up Connection .................................................................31
Choose a Broadband Network Option ...................................................32
Connect a Powerline Network ................................................................34
Connect a Wireless Network ...................................................................36
Remember These Rules to Stay Safe Online ...........................................41
Chapter 3: All About E-Mail ............................................ 43
Check Out Places to Get Your E-Mail Service ........................................44
Meet the Big Three Web-Based E-Mail Providers ...................................46
Pick a Pick-Proof Password .....................................................................51
Sign Up for a Gmail Account ..................................................................52
Add Your Contacts ...................................................................................56
Compose and Send an E-mail .................................................................58
Find Friends in Other Friend Lists ....................................................... 116
Respond to a Friend Request ................................................................ 118
Connect with a Facebook Network...................................................... 120
Send Private Messages to Friends ......................................................... 122
Retrieve a Private Message .................................................................... 123
Chat with Your Friends ......................................................................... 125
Post Messages on a Friend’s Wall ......................................................... 126
Comment on a Friend’s Status ............................................................. 128
Post a Note ............................................................................................ 129
Remove Messages from Your Wall ....................................................... 130
Chapter 8: Adding Photos and Videos to Facebook ....... 131
Upload a Photo to Your Account......................................................... 132
Create a Photo Album .......................................................................... 135
Tag Photos ............................................................................................. 138
Untag Yourself in a Photo .................................................................... 141
Delete a Photo ....................................................................................... 143
Upload a Video to Facebook ................................................................ 143
Chapter 9: Exploring Groups, Events, and Games .......... 145
Find Your Favorite Things on Facebook ............................................. 146
Join a Facebook Group ......................................................................... 150
Start a Facebook Group ........................................................................ 154
Communicate with Group Members ................................................... 157
Create an Event Invitation .................................................................... 159
Review Upcoming Events ..................................................................... 161
Export an Event to Another Calendar .................................................. 162
Have Some Fun with Games and Applications .................................. 163
Browse Facebook Apps and Games ..................................................... 165
Part III: And Now, It’s Twitter Time ...................................... 171
Chapter 10: A Beginner’s Guide to Twitter ..................... 173
Register with Twitter ............................................................................ 174
Find People to Follow........................................................................... 178
Adjust Your Account Settings ............................................................... 184
Upload Your Avatar .............................................................................. 187
Select a Theme for Your Profile Page ................................................... 189
Set Up Notices ....................................................................................... 190
Know Twitter Shorthand ...................................................................... 191
Chapter 11: Conversing on Twitter
with Friends, Family, and More .................................. 193
Follow Basic Guidelines for Conversing.............................................. 194
Pass Along a Chosen Tweet .................................................................. 196
Favorite Your Favorite Tweets .............................................................. 198
Search for Tweeted Topics .................................................................... 200
Know What to Tweet About ................................................................. 201
Chapter 12: Gathering Tools of the Twitter Trade .......... 205
Search for Tweeps on WeFollow .......................................................... 206
Add Yourself to WeFollow .................................................................... 211
Find Trends with Summize .................................................................. 212
FollowFriday, FF, and Other Hashtags ................................................ 216
Connect with People ............................................................................. 220
Keep Track of Hundreds, Thousands of Friends? ............................... 222
View Your Friend Lists .......................................................................... 225
Part IV: The Rest of the Social Networking Story ................... 229
Chapter 13: Sharing (and Grabbing)
Photos, Videos, and Music .......................................... 231
Give Credit When You Share ............................................................... 232
Make Your Links Short ......................................................................... 235
Share Your Photos with Twitpic ........................................................... 240
Become an Online Deejay (DJ) ........................................................... 245
Spin Your Songs for Online Friends .................................................... 246
Find and Share Videos on YouTube .................................................... 248
Chapter 14: Giving or Taking an Opinion ...................... 253
Check Out Angie’s List .......................................................................... 254
Find Anything (and Its Reviews) on Amazon ..................................... 255
Find Restaurants, Shopping, and Nightlife on Yelp ........................... 258
Register on Yelp to Leave Reviews ....................................................... 261
Leave a Review on Yelp ........................................................................ 262
Read Between the Lines at Review Sites .............................................. 264
Find Hotel Reviews on TripAdvisor ..................................................... 266
Add a Hotel Review on TripAdvisor .................................................... 268
Find a Good Movie on Flixster ............................................................ 272
Leave a Comment on Flixster ............................................................... 273
Chapter 15: So You Want to Be a Blogger? ................... 277
Answer These Questions Before You Start ........................................... 278
Stake Your Claim in the Blogosphere .................................................. 280
Register Your Blog ................................................................................. 282
Give Your Blog a Name ........................................................................ 283
Choose a Template ............................................................................... 285
Post Your Story with Photos ................................................................ 286
Set Up Your Profile ............................................................................... 291
Index ................................................................................... 295

Another Social Network Books

Download

Tuesday, September 20, 2011

Learning Facebook Application Development





Table of Contents
Preface 1
Chapter 1: Getting to Grips with the Facebook Platform 5
The Purpose of the Facebook Platform 6
The Standard Web Application Model 6
The Facebook Web Application Model 7
The Facebook Platform Elements 8
The Facebook API 9
The Facebook API Test Console 9
FBML 15
The FBML Test Console 15
FQL 18
Obtaining the Facebook Client Libraries 19
Adding the Developer Application 25
Setting Up Your Application 26
Required Fields 27
Optional Fields 28
Base Options 28
Installation Options 30
Integration Points 31
Summary 32
Chapter 2: Building a Facebook Application 33
A Simple Facebook Application 33
Getting the Server Ready for Action 33
Creating Your First Facebook Application 34
The Application Initiation Code 34
The Application Code 35
Viewing the New Application 35
Developing the Simple Application 37
Examining Variables 41
Using FQL in Your Application 42
[ ii ]
Writing to the Facebook Profile 44
Updating the Facebook Cache 44
Mock AJAX and Your Facebook Profile 48
Using a Form on Your Profile 48
Creating a Dynamic Combo-Box 51
Limiting Access to the Form 54
Storing Data—Keeping Files on Your Server 56
Storing FBML on Your Server 56
Storing Data on Your Server 57
Summary 64
Chapter 3: Databases, Dashboards, and the Profile 65
Setting up the Database 66
Setting the Root Password 66
Creating the Database 67
Adding a User 67
A Table for Our Data 67
Migrating Data 67
Accessing the Database from Your Facebook Application 68
Connecting to the Database 68
Using a Remote Database 69
Running Queries on the Database 70
Obtaining Data from the Database 70
Inserting Data into the Database 72
Deleting Data from the Database 72
Analyzing the Database 73
Calculating the Number Items in a Table 74
Grouping and Ordering Data 76
Updating Everyone's Profile 78
Updating the Facebook Cache—Remotely 78
Obtaining the Application Session ID 78
Using the Session ID to Write to a Profile 79
Updating More Than One User's Profile 81
Automating the Facebook Cache Update 82
A Simple Batch File 83
Using At Command to Control the Batch File 84
Using Cron to Control the Batch File 84
Pros and Cons of the Methods 85
Tracking Users 85
A Table for Your Users 86
Finding Your Application ID 87
Adding New Users 87
Removing a User 89
Defining a Post-Remove URL 90
Producing a List of Users 91
The Facebook Dashboard 92
Adding a Dashboard 92
Adding Help to the Dashboard 93
Adding an Action to the Dashboard 93
The Dashboard Create Button 94
Facebook JavaScript 94
The Facebook Contextual Dialog 95
Summary 97
Chapter 4: Cooking User Data 99
How to Fetch User Data 99
FBML 100
fb:name 100
fb:pronoun 101
fb:profile-pic 102
fb:user 103
Logical Tags 104
fb:is-in-network 104
fb:if-can-see 104
fb:if-can-see-photo 105
fb: if-is-friends-with-viewer 105
fb:is-if-group-member 106
fb:is-own-profile 106
fb:if-is-user 106
fb:if-user-has-added-app 107
fb:if-is-app-user 107
FQL 107
Let's Have a Look at the Schema 108
JOIN as Sub Query 110
Effective Searching with Structures 112
Common Snippets 112
Find All the friends of a User 112
Find All Friends Who Have the Current Application Installed 112
Find All Friends Whose Birthday Is Tomorrow 113
Find Which Groups a Specific User Is Subscribed To 113
Find All the Photos Uploaded by the User and in Any Album 113
Functions You can Use in FQL 114
Using Facebook API to Retrieve Information 114
Retrieving Profile Information 115
Retrieving List of Friends 115
Finding Out If Some Users are Friends 116
Retrieving Group Member's Information 116
Retrieving a User's Photo 117
Facebook Developers Tool 119
Summary 122
Chapter 5: FBJS—The JavaScript 123
How FBJS Works 123
DOM Manipulation Using FBJS 125
DRY Means Don't Repeat Yourself 131
Managing Stylesheet with FBJS 132
Creating a Drop-Down Menu in FBJS 135
Dialog 138
Displaying Information 138
Accepting User Input 138
Contextual or Pop Up? 139
Advanced Input System Using Dialogs 140
Events 141
AJAX 143
Common Tasks 145
Posting Parameters to Server Side Code 145
Posting Multibyte Characters 146
Canceling an AJAX Request 147
Making Sure that Users have to Log In for the AJAX Request 147
Summary 147
Chapter 6: Feeds 149
What Are Feeds? 149
How to Publish Feeds 151
Sample Application to Play with Feeds 153
So How Did it Work? 157
Publishing News Feed 158
Difference between These Two Methods 163
feed_publishTemplatizedAction 163
Summary 165
Chapter 7: Invitations and Notifications 167
Invitations 167
fb:request-form 170
fb:req-choice 171
fb:request-form-submit 171
fb:multi-friend-selector 172
fb:multi-friend-input 172
fb:application-name 173
Notifications 174
notifications_send 174
notifications_sendEmail 175
Tips for Effective Notification and Emailing 177
Summary 177
Chapter 8: Photos 179
Photo API 179
photos_getAlbum 180
Accessing from an External Application 182
Uploading Photo 185
Tagging Your Photos 187
Slideshow Application 188
Summary 194
Chapter 9: Tools and Multimedia 195
Creating a Discussion Board 195
Taking Comments from Users 198
Making a Wall Using fb:wall 201
Increasing Usability Using fb:switch 202
Using fb:random to Display a Random Option 204
Increasing Usability Using fb:switch 204
Sharing Content 205
Audio Sharing 208
Video Sharing 208
Multimedia Contents 208
Displaying Photo 209
Managing Audio 210
Managing Video (FLV Format) 211
Summary 214
Index 215


Another Social Networks Books
Download

Monday, September 19, 2011

Facebook API Developers Guide







Content
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
■CHAPTER 1 Introducing the Facebook Platform. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Is Facebook?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
A Brief History of Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Elements of the Facebook Platform . . . . . . . . . . . . . . . . . . . . . . . . . 2
Facebook Markup Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
REST API Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Facebook Query Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Facebook JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Client Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
■CHAPTER 2 Getting Ready for Facebook Application Development . . . . . . . . . . . 9
What’s Needed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Creating a Facebook Account. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Understanding Facebook Layout and Terms . . . . . . . . . . . . . . . . . 10
Setting Up Your Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Adding the Developer Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Understanding How Facebook Applications Work . . . . . . . . . . . . . . . . . 15
Creating a New Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Facebook Terms of Service Highlights . . . . . . . . . . . . . . . . . . . . . 19
Using Facebook Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
API Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
JSON. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
FBML Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Feed Preview Console Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Using Programming Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
■CHAPTER 3 Learning Facebook Platform Fundamentals . . . . . . . . . . . . . . . . . . . . 31
Client Library Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
API Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
FBML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
FQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Friends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Marketplace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Photos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Users. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Data Store API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
FQL Primer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Functions and Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Facebook Markup Language Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Valid HTML Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
FBML Tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Conditionals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
User/Group Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Profile Specific. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Embedded Media. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Visibility on Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Other . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Editor Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Page Navigation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Wall. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Mock Ajax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Facebook JavaScript Primer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
DOM Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Putting It Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Things to Remember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
■CHAPTER 4 Building a Facebook Application, Start to Finish . . . . . . . . . . . . . . . . 71
Setting Up Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Using Plug-Ins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Remote Project Support (FTP/SFTP) . . . . . . . . . . . . . . . . . . . . . . . 73
PHP Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Data Tools Platform SQL Development Tools . . . . . . . . . . . . . . . . 78
Connecting to Your Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Layout Out the Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Creating the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Designing the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Working with SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Jumping In. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
External Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Game Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Add Game . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Publishing Feeds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Launching Your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Creating the About Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Creating a Logo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Submitting for Approval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Publicizing Your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Advanced Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
■CHAPTER 5 Going Further with Your Application. . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Application Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Monetizing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
AdSense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Amazon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Adonomics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Advertising Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Selling Your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Help, I’m Stuck! (and Other Resources) . . . . . . . . . . . . . . . . . . . . . . . 136
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136



Another Social Network Books
Download

Saturday, September 17, 2011

Sams Teach Yourself Facebook for Business in 10 Minutes






Table of Contents
Introduction 1
About This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Who This Book Is For . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
What Do I Need to Use This Book? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Conventions Used in This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Screen Captures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1 Introducing Facebook for Business 9
Why Facebook Is So Popular . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Why Your Business Should Be on Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Comparing Personal and Business Facebook Pages . . . . . . . . . . . . . . . . 16
Your Personal Facebook Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Examining a Facebook Fan Page for Business . . . . . . . . . . . . . . . . . . . . . . . . 19
Understanding How a Big Business Uses Facebook . . . . . . . . . . . . . . . . 22
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2 Setting Up a Business-Friendly Profile Page 25
What Makes a Personal Page Business-Friendly? . . . . . . . . . . . . . . . . . . . . 25
Creating a Business-Only “Personal” Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Signing Up for Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Finding Friends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Editing Your Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Changing Privacy Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Sharing Your Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3 Finding and Installing Apps 43
Choosing Apps for Business and Pleasure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Looking for Facebook Apps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4 Choosing Your Facebook Business Strategy 53
Leading with Facebook First . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Examining Facebook Business Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Your Fan Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Your Places Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Facebook Deals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Facebook Ads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Checking In to a Place . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Pulling It All Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
5 Planning Your Fan Page 71
Anatomy of a Facebook Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Planning Your Fan Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Typical Website Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Freeform Pages Using FBML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Photos and Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Events, Reviews, and Discussion Boards . . . . . . . . . . . . . . . . . . . . . . 81
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
6 Creating Your Fan Page 85
Checking if Your Business Name Is in Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Why Use a Vanity URL? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Just What Name Should You Use? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Checking Out Your Candidates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Making Your Choice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Signing Up for Your Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
7 Setting Up Your Business Fan Page 99
Creating Core Settings for Your Business Fan Page . . . . . . . . . . . . . . . . 99
Entering Basic Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Adding a Profile Picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Adding and Managing Apps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Changing Mobile Settings and Your URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
8 Expanding and Promoting Your Fan Page 111
Waiting to Send Out Invitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Building Your Wall through Status Updates . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Text Status Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Photos on Your Wall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Link Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Video Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Updating the Info Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Managing the Photos Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Start Discussions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Add Links, Notes, Videos, and Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
9 Claiming Your Places Page 125
Understanding How Places Fits In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Understanding How to Claim Your Place . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Adding Your Place . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Editing Your Place . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Claiming Your Place . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Combining Places and Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
10 Creating Facebook Deals 141
Understanding the Advantages of Facebook Deals . . . . . . . . . . . . . . . . 141
Finding Out If You Can Offer Facebook Deals . . . . . . . . . . . . . . . . . . . . . . . . 145
Thinking Up Deals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Creating a Deal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
11 Planning and Targeting Facebook Ads 155
Budgeting for Your Ad Campaign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Avoiding Wastage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Creating a Facebook-Friendly Call to Action . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Designing an Ad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Targeting Your Ads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Understanding How Facebook Determines a
User’s Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Focusing on Major Types of Targeting . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Minor Types of Targeting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
12 Pricing and Creating Your Ad Campaign 169
Understanding What You Pay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Learning Key Advertising Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Creating an Ad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
13 Promoting Your Facebook Presence 183
Understanding Why Promotion Is Imprtant . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Measuring Your Efforts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Promoting in the Real World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Promoting Online and on Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Promoting All Your Facebook Pieces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
14 Tracking the Performance of Your Facebook
Presence 195
Understanding Why Tracking Is Imprtant . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Understanding Why Facebook Data Is So Accurate . . . . . . . . . . . . . . . . 196
Touring the Page Overview in Insights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Drilling Down on Insights about Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Daily Active Users Breakdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
New Likes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Demographics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Activity—Page Views and Media Consumption . . . . . . . . . . . . 207
Drilling Down on Interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Page Posts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Page Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Index 213

Another Social Network Books
Another Business Books
Another Commerce Books
Download

Thursday, August 25, 2011

Twitter Marketing an Hour a Day






Contents
Foreword xix
Introduction xxi
Part I Get to Know Twitter 1
Chapter 1 Understand Twitter 3
Twitter History and Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Twitter’s Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Twitter’s Rapid Ascent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Twitter’s Financial Future . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
What Makes Tweeps Tick? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Twitter’s Culture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Chapter 2 Who’s Using Twitter for What? 39
Demographics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Individual Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Bots, Games, and Memes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Small and Home-Based Businesses . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Not-for-Profits: Charities, Causes, the Arts, Houses of
Worship, and Associations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Academia and Higher Education . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Government . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Marketing, Advertising, Public Relations, and
Communications Professionals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Media Outlets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Sports and Entertainment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Corporations and Brands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Chapter 3 Twitter, the Multipurpose Platform 87
What Twitter Can Accomplish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Key Questions to Consider for Branding . . . . . . . . . . . . . . . . . . . . . . 119
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Part II Month 1: Master Twitter Fundamentals 127
Chapter 4 Week 1: Get on Twitter 129
Monday: Create an Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Tuesday: Find People to Follow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Wednesday: Learn Twitter Lingo . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Thursday: Access Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Friday: From Lurking to Leaping . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Chapter 5 Week 2: Find and Attract Followers 169
Followers and Following . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Monday: Use Basic Search to Find Followers . . . . . . . . . . . . . . . . . . 173
Tuesday: Add New Friends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Wednesday: Attract Followers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Thursday: Syndicate Your Tweet Content . . . . . . . . . . . . . . . . . . . . . 195
Friday: Tools to Help Build and Manage Followers . . . . . . . . . . . . . . 197
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Chapter 6 Week 3: Use Twitter Search and Other Tools to Improve Your Experience 205
Search and Other Tools for Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Monday: Master Twitter Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Tuesday: Use Tools to Enrich Your Tweets . . . . . . . . . . . . . . . . . . . . 215
Wednesday: Analyze Your Twitter Activity . . . . . . . . . . . . . . . . . . . . 227
Thursday: Experiment with Other Useful Twitter Tools . . . . . . . . . . 236
Friday: Fun with Twitter Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Chapter 7 Week 4: Track and Monitor What Twitter Generates for You 247
Twitter Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Monday: Understand What to Track and How to Review It . . . . . . . 248
Tuesday: Alerts—Simple Tracking Tools . . . . . . . . . . . . . . . . . . . . . . 255
Wednesday: Advanced Tracking Tools . . . . . . . . . . . . . . . . . . . . . . . 260
Thursday: Compile Tracking Data . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Friday: Review, Analyze, and Respond to Tracking Data . . . . . . . . . 270
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Part III Month 2: Develop and Launch Your Strategic Plan 277
Chapter 8 Week 5: Develop a Successful Twitter Strategy 279
Monday: Study Brands Succeeding with Twitter . . . . . . . . . . . . . . . . 280
Tuesday: Different Approaches to Develop Your Strategy . . . . . . . . . 292
Wednesday: Study Strategies for Market Verticals . . . . . . . . . . . . . . 296
Thursday: Twitter’s Role in Your Overall Marketing Strategy . . . . . 302
Friday: Avoid Pitfalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
Chapter 9 Week 6: Establish Goals and Get Corporate Buy-In 309
Monday: Establish Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Tuesday: Measure and Report Upon Your Objectives . . . . . . . . . . . . 314
Wednesday: Determine Tweet Topics . . . . . . . . . . . . . . . . . . . . . . . . 317
Thursday: Assign Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Friday: Get Company Buy-In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Chapter 10 Week 7: Get Your Brand Started on Twitter 329
Monday: Claim Your Brand’s Twitter Name . . . . . . . . . . . . . . . . . . . 330
Tuesday: Set Up Your Brand’s Profile . . . . . . . . . . . . . . . . . . . . . . . . 335
Wednesday: Your First Brand Tweets . . . . . . . . . . . . . . . . . . . . . . . . 342
Thursday: Engage Your Brand’s Followers . . . . . . . . . . . . . . . . . . . . 347
Friday: Summarize Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Chapter 11 Week 8: Monitor, Measure, and Valuate 357
Monday: Review Your Twitter Stats . . . . . . . . . . . . . . . . . . . . . . . . . 358
Tuesday: Analyze Your Website Traffic . . . . . . . . . . . . . . . . . . . . . . . 362
Wednesday: Analyze Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Thursday: Valuate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
Friday: Review Case Studies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Part IV Month 3: Maintain Your Twitter Presence 379
Chapter 12 Week 9: Institutionalize Maintenance 381
Monday: Hold Weekly Meetings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Tuesday: Implement Weekly Action Plan . . . . . . . . . . . . . . . . . . . . . . 386
Wednesday: Oversee Production Requirements . . . . . . . . . . . . . . . . . 388
Thursday: Prepare Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Friday: Deliver Results to Management . . . . . . . . . . . . . . . . . . . . . . . 391
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Chapter 13 Week 10: Prepare for Crisis Management 395
The Reality of Twitter Crises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Monday: List Potential Crises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
Tuesday: Create a Fire Drill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
Wednesday: Write a Twitter Crisis Management Action Plan . . . . . . 406
Thursday: Know How to Really Say “I’m Sorry” . . . . . . . . . . . . . . . 408
Friday: Distribute Your Crisis Action Plan . . . . . . . . . . . . . . . . . . . . 410
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
Chapter 14 Week 11: Develop a Direct Response Promotion for Twitter 413
Monday: Define the Need . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
Tuesday: Define Campaign Components . . . . . . . . . . . . . . . . . . . . . . 421
Wednesday: Move to Production . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
Thursday: Work Your Announcement Strategy . . . . . . . . . . . . . . . . . 426
Friday: Launch Your Campaign . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
The Main Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
Appendix A Twitter-Related Glossary 431
Appendix B Twitter-Related Tools and Resources 439
Appendix C Tips from Tweeps 447
Appendix D Social Media Guidelines 453
Index 457

Another Social Network Books
Download
Related Posts with Thumbnails

Put Your Ads Here!