1300 187 187
 

The Developer's Guide to Social Programming

Building Social Context Using Facebook, Google Friend Connect, and the Twitter API

Paperback

Published: 15th August 2010
Ships: 7 to 10 business days
RRP $79.99
$44.50
44%
OFF

Add social context to any site, with three leading technologies: Facebook Connect, Google Friend Connect (OpenSocial), and the Twitter API!

  • The first book that shows how to build integrated social programming solutions that work seamlessly across all leading platforms.
  • Includes extensive practical, up-to-the-minute coverage of the Twitter API that thousands of developers have been searching for.
  • Presents extensive examples demonstrating how to solve problems ranging from site user registration to blog commenting.

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

Twitter
Working with the Twitter APIp. 1
Twitter API Essentialsp. 1
Twitter API Methodsp. 3
Twitter API Parametersp. 6
Twitter API Return Formatsp. 10
Accessing the Twitter APIp. 11
CURLp. 12
Twitter-asyncp. 14
Twitter API Rate Limitingp. 17
Twitter API Error Handlingp. 18
Summaryp. 19
Diving Into the Twitter API Methodsp. 21
Twitter API Methodsp. 21
User Objectsp. 23
Status Objectsp. 26
Direct Message Objectsp. 28
Saved Search Objectsp. 29
ID Objectsp. 30
Relationship Objectsp. 31
Response Objectsp. 32
Hash Objectsp. 33
Twitter Search APIp. 34
Introducing the Atom Syndication Formatp. 34
Twitter Search API Methodsp. 38
Summaryp. 43
Authentication with Twitter OAuthp. 45
Introducing Twitter OAuthp. 45
OAuth Benefitsp. 46
OAuth Definitionsp. 46
Implementing Twitter OAuthp. 48
Twitter OAuth Workflowp. 48
Test Tube: A Sample Twitter Applicationp. 50
Summaryp. 59
Extending the Twitter API: Retweets, Lists
And Locationp. 61
Extending Twitter's Core Functionalityp. 61
Retweet APIp. 62
Lists APIp. 64
Geolocation APIp. 68
Twitter Community Evolutionp. 71
Platform Translationsp. 71
Spam Reportingp. 72
Future Directionsp. 74
Summaryp. 76
Facebook Platform
An Overview of Facebook Platform Website
Integrationp. 77
Facebook Platform for Developersp. 77
Facebook Platformp. 78
Registering a Facebook Applicationp. 79
Referencing a Facebook Platform Applicationp. 81
Facebook API, FQL, and XFBMLp. 84
Facebook API and FQLp. 84
XFBMLp. 97
Summaryp. 98
Registration, Authentication, and Translations with Facebookp. 99
User Authorization and Authenticationp. 99
Logging In and Detecting Facebook Statusp. 101
Logging Out, Disconnecting, and Reclaiming
Accountsp. 107
Connecting and Inviting Friendsp. 109
Translations for Facebookp. 111
Preparing Your Application and Registering Textp. 111
Administering and Accessing Translationsp. 113
Summaryp. 114
Using Facebook for Sharing, Commenting, and Stream Publishingp. 115
Content-Sharing and Live Conversationp. 115
Facebook Sharep. 116
Facebook Widgetsp. 118
Social Commenting and Stream Publishingp. 120
Comments Boxp. 120
Open Stream APIp. 123
Summaryp. 135
Application Discovery, Tabbed Navigation, and the Facebook JavaScript Libraryp. 137
Application Dashboards and Countersp. 138
News and Activity Streamsp. 139
Games and Applications Countersp. 143
Navigating and Showcasing Your Application
Using Tabsp. 145
Configuring and Installing an Application Tabp. 146
Extending an Application Tabp. 149
Dynamic Content and the Facebook
JavaScript (FBJS) Libraryp. 157
Facebook Animation Libraryp. 157
Facebook Dialogsp. 160
Handling Events with an Event Listenerp. 162
Summaryp. 164
Google Friend Connect
An Overview of Google Friend Connectp. 165
Components of Google Friend Connectp. 165
Google Friend Connect Gadgetsp. 166
Google Friend Connect JavaScript APIp. 167
Server-Side Integrationp. 167
Google Friend Connect Plug-insp. 168
Using the Google Friend Connect JavaScript APIp. 169
Installing and Configuring the JavaScript Libraryp. 169
Working with Google Friend Connect Datap. 171
An Overview of the OpenSocial APIp. 173
OpenSocial API Methodsp. 173
The DataRequest Objectp. 174
Fetching People and Profilesp. 176
Fetching and Updating Activitiesp. 177
Fetching and Updating Persistencep. 178
Color Picker: A Google Friend Connect Applicationp. 181
Summaryp. 191
Server-Side Authentication and OpenSocial Integrationp. 193
Server-Side OpenSocial Protocols and Authentication Methodsp. 193
Google Friend Connect Authentication Methodsp. 194
OpenSocial Client Librariesp. 196
Using the PHP OpenSocial Client Library with Google Friend Connectp. 197
Google Friend Connect Authentication Workflowp. 197
Setting Up a Server-Side Applicationp. 198
OpenSocial Data Extraction Principlesp. 201
Summaryp. 207
Developing OpenSocial Gadgets with Google Friend Connectp. 209
An Overview of Google Gadgetsp. 209
Anatomy of an OpenSocial Google Gadgetp. 210
OpenSocial v
0.9 Specificationp. 214
Advanced OpenSocial Gadget Developmentp. 217
Creating a Google Gadgetp. 222
Color Picker, Revisitedp. 222
Testing, Tracking, and Directory Submissionp. 230
Summaryp. 233
Putting It All Together
Building a Microblog Tool Using CodeIgniterp. 235
An Overview of CodeIgniterp. 235
The Model-View-Controller Architectural Designp. 236
Installing, Configuring, and Exploring CodeIgniterp. 237
CodeIgniter Librariesp. 240
CodeIgniter Helpersp. 245
Building the Basic Sprog Applicationp. 246
Stage 1: Creating the Registration, Login, and Home Pagesp. 247
Stage 2: Extending the Sprog Application with Updates, Comments, and Likesp. 257
Summaryp. 266
Integrating Twitter, Facebook, and Google Friend Connectp. 267
Implementing Twitter Functionalityp. 267
Setting Up Twitter and Twitter-async Supportp. 268
Stage 3: Extending the Sprog Application with Twitter Functionalityp. 270
Updating a User's Twitter Accountp. 276
Implementing Facebook Functionalityp. 279
Registering a Facebook Application and Adding Facebook Supportp. 279
Stage 4: Extending the Sprog Application with Facebook Functionalityp. 281
Implementing Google Friend Connect Functionalityp. 292
Registering and Adding Google Friend Connect Supportp. 292
Stage 5: Extending the Sprog Application with Google Friend Connect Functionalityp. 294
Summaryp. 301
Indexp. 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