Add social context to any site, with three leading technologies: Facebook Connect, Google Friend Connect (OpenSocial), and the Twitter API!
More and more companies are building applications that integrate with Facebook, Twitter, and other social networking technologies. Increasingly, they want to go beyond single-network solutions to build environments that work across social networks, reaching their customers wherever they are, wherever they prefer to be reached. This book will show them how. In The Developer's Guide to Social Programming, Mark Hawker shows how to efficiently integrate their web sites with multiple social media environments at the same time. Unlike competitive books that focus on a single social media platform, this book covers three leading technologies: Facebook Connect, Google Friend Connect, and the Twitter API. The book's extensive coverage of the Twitter API will make it especially valuable to the fast-growing base of Twitter developers, who have had few resources to rely on in building Twitterintegrated solutions. Hawker offers practical solutions and code for addressing a wide range of common challenges in social programming, from site user registration to blog commenting. All code examples are provided on a companion web site, which also presents how-to videos and a community discussion area.
"With the advent of the social web, companies must know how to leverage new technologies to stay competitive. Mark Hawker shows readers in simple steps what social programming really means. He walks you through examples of integrating with many of today's most successful social platforms--getting you up and running with social programming in no time at all." --Joseph Annuzzi, Jr., Web Architect, PeerDynamic.com "An essential reference for the social web, present and future! a must-have for making your website known on the social graph." --Joshua T. Gross, Cortex Creations
| Working with the Twitter API | p. 1 |
| Twitter API Essentials | p. 1 |
| Twitter API Methods | p. 3 |
| Twitter API Parameters | p. 6 |
| Twitter API Return Formats | p. 10 |
| Accessing the Twitter API | p. 11 |
| CURL | p. 12 |
| Twitter-async | p. 14 |
| Twitter API Rate Limiting | p. 17 |
| Twitter API Error Handling | p. 18 |
| Summary | p. 19 |
| Diving Into the Twitter API Methods | p. 21 |
| Twitter API Methods | p. 21 |
| User Objects | p. 23 |
| Status Objects | p. 26 |
| Direct Message Objects | p. 28 |
| Saved Search Objects | p. 29 |
| ID Objects | p. 30 |
| Relationship Objects | p. 31 |
| Response Objects | p. 32 |
| Hash Objects | p. 33 |
| Twitter Search API | p. 34 |
| Introducing the Atom Syndication Format | p. 34 |
| Twitter Search API Methods | p. 38 |
| Summary | p. 43 |
| Authentication with Twitter OAuth | p. 45 |
| Introducing Twitter OAuth | p. 45 |
| OAuth Benefits | p. 46 |
| OAuth Definitions | p. 46 |
| Implementing Twitter OAuth | p. 48 |
| Twitter OAuth Workflow | p. 48 |
| Test Tube: A Sample Twitter Application | p. 50 |
| Summary | p. 59 |
| Extending the Twitter API: Retweets, Lists | |
| And Location | p. 61 |
| Extending Twitter's Core Functionality | p. 61 |
| Retweet API | p. 62 |
| Lists API | p. 64 |
| Geolocation API | p. 68 |
| Twitter Community Evolution | p. 71 |
| Platform Translations | p. 71 |
| Spam Reporting | p. 72 |
| Future Directions | p. 74 |
| Summary | p. 76 |
| Facebook Platform | |
| An Overview of Facebook Platform Website | |
| Integration | p. 77 |
| Facebook Platform for Developers | p. 77 |
| Facebook Platform | p. 78 |
| Registering a Facebook Application | p. 79 |
| Referencing a Facebook Platform Application | p. 81 |
| Facebook API, FQL, and XFBML | p. 84 |
| Facebook API and FQL | p. 84 |
| XFBML | p. 97 |
| Summary | p. 98 |
| Registration, Authentication, and Translations with Facebook | p. 99 |
| User Authorization and Authentication | p. 99 |
| Logging In and Detecting Facebook Status | p. 101 |
| Logging Out, Disconnecting, and Reclaiming | |
| Accounts | p. 107 |
| Connecting and Inviting Friends | p. 109 |
| Translations for Facebook | p. 111 |
| Preparing Your Application and Registering Text | p. 111 |
| Administering and Accessing Translations | p. 113 |
| Summary | p. 114 |
| Using Facebook for Sharing, Commenting, and Stream Publishing | p. 115 |
| Content-Sharing and Live Conversation | p. 115 |
| Facebook Share | p. 116 |
| Facebook Widgets | p. 118 |
| Social Commenting and Stream Publishing | p. 120 |
| Comments Box | p. 120 |
| Open Stream API | p. 123 |
| Summary | p. 135 |
| Application Discovery, Tabbed Navigation, and the Facebook JavaScript Library | p. 137 |
| Application Dashboards and Counters | p. 138 |
| News and Activity Streams | p. 139 |
| Games and Applications Counters | p. 143 |
| Navigating and Showcasing Your Application | |
| Using Tabs | p. 145 |
| Configuring and Installing an Application Tab | p. 146 |
| Extending an Application Tab | p. 149 |
| Dynamic Content and the Facebook | |
| JavaScript (FBJS) Library | p. 157 |
| Facebook Animation Library | p. 157 |
| Facebook Dialogs | p. 160 |
| Handling Events with an Event Listener | p. 162 |
| Summary | p. 164 |
| Google Friend Connect | |
| An Overview of Google Friend Connect | p. 165 |
| Components of Google Friend Connect | p. 165 |
| Google Friend Connect Gadgets | p. 166 |
| Google Friend Connect JavaScript API | p. 167 |
| Server-Side Integration | p. 167 |
| Google Friend Connect Plug-ins | p. 168 |
| Using the Google Friend Connect JavaScript API | p. 169 |
| Installing and Configuring the JavaScript Library | p. 169 |
| Working with Google Friend Connect Data | p. 171 |
| An Overview of the OpenSocial API | p. 173 |
| OpenSocial API Methods | p. 173 |
| The DataRequest Object | p. 174 |
| Fetching People and Profiles | p. 176 |
| Fetching and Updating Activities | p. 177 |
| Fetching and Updating Persistence | p. 178 |
| Color Picker: A Google Friend Connect Application | p. 181 |
| Summary | p. 191 |
| Server-Side Authentication and OpenSocial Integration | p. 193 |
| Server-Side OpenSocial Protocols and Authentication Methods | p. 193 |
| Google Friend Connect Authentication Methods | p. 194 |
| OpenSocial Client Libraries | p. 196 |
| Using the PHP OpenSocial Client Library with Google Friend Connect | p. 197 |
| Google Friend Connect Authentication Workflow | p. 197 |
| Setting Up a Server-Side Application | p. 198 |
| OpenSocial Data Extraction Principles | p. 201 |
| Summary | p. 207 |
| Developing OpenSocial Gadgets with Google Friend Connect | p. 209 |
| An Overview of Google Gadgets | p. 209 |
| Anatomy of an OpenSocial Google Gadget | p. 210 |
| OpenSocial v | |
| 0.9 Specification | p. 214 |
| Advanced OpenSocial Gadget Development | p. 217 |
| Creating a Google Gadget | p. 222 |
| Color Picker, Revisited | p. 222 |
| Testing, Tracking, and Directory Submission | p. 230 |
| Summary | p. 233 |
| Putting It All Together | |
| Building a Microblog Tool Using CodeIgniter | p. 235 |
| An Overview of CodeIgniter | p. 235 |
| The Model-View-Controller Architectural Design | p. 236 |
| Installing, Configuring, and Exploring CodeIgniter | p. 237 |
| CodeIgniter Libraries | p. 240 |
| CodeIgniter Helpers | p. 245 |
| Building the Basic Sprog Application | p. 246 |
| Stage 1: Creating the Registration, Login, and Home Pages | p. 247 |
| Stage 2: Extending the Sprog Application with Updates, Comments, and Likes | p. 257 |
| Summary | p. 266 |
| Integrating Twitter, Facebook, and Google Friend Connect | p. 267 |
| Implementing Twitter Functionality | p. 267 |
| Setting Up Twitter and Twitter-async Support | p. 268 |
| Stage 3: Extending the Sprog Application with Twitter Functionality | p. 270 |
| Updating a User's Twitter Account | p. 276 |
| Implementing Facebook Functionality | p. 279 |
| Registering a Facebook Application and Adding Facebook Support | p. 279 |
| Stage 4: Extending the Sprog Application with Facebook Functionality | p. 281 |
| Implementing Google Friend Connect Functionality | p. 292 |
| Registering and Adding Google Friend Connect Support | p. 292 |
| Stage 5: Extending the Sprog Application with Google Friend Connect Functionality | p. 294 |
| Summary | p. 301 |
| Index | p. 303 |
| Table of Contents provided by Publisher. All Rights Reserved. |
ISBN: 9780321680778
ISBN-10: 0321680774
Series: Developer's Library
Audience:
General
Format:
Paperback
Language:
English
Number Of Pages: 336
Published: 15th August 2010
Dimensions (cm): 22.9 x 17.8
x 1.7
Weight (kg): 0.54