Building OpenSocial Apps: A Field Guide to Working with the MySpace Platform

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

“The authors did a great job covering the various ins and outs of OpenSocial, and especially the specific MySpace quirks. If you are a new social networking application developer or even someone who just wants to write better OpenSocial Apps, then this book has what you are looking for.”

–Cassandra Doll, Software Engineer, Google

 

The Insider’s Guide to Writing OpenSocial Applications for MySpace–and Beyond!

 

When you write OpenSocial applications for MySpace, you can reach millions of users overnight. Building OpenSocial Apps shows you how, one step at a time. Whether you’re building casual widgets or feature-rich, professional applications, this book will teach you everything you need to know.

 

The authors are the leading experts on OpenSocial and MySpace and have personally helped construct the MySpace platform and OpenSocial standards. In this indispensable book, they walk you through the entire process of building apps, from signing up through building complex apps that can scale to thousands of users and interoperate on more than fifty social networks, such as Hi5, Orkut, and LinkedIn. They demonstrate today’s best practices for building OpenSocial applications and present dozens of tips for leveraging both MySpace and OpenSocial to their fullest. Coverage includes

  • Installing and working with the MySpace Developer Platform
  • Retrieving, parsing, and displaying user data, friend lists, and photos
  • Sending App invitations and notifications
  • Building mashups that communicate with third-party web services
  • Marketing your App and building your user base
  • Designing for performance, scalability, and fault tolerance
  • Securing MySpace and OpenSocial apps, and protecting users’ privacy
  • Building apps that display ads and accept micropayments

A companion web site (opensocialtictactoe.googlecode.com) includes an extensive library of downloadable source code and other support materials.

Author(s): Chris Cole, Chad Russell, Jessica Whyte
Edition: 1
Publisher: Addison-Wesley Professional
Year: 2009

Language: English
Pages: 409

Addison Wesley - Building OpenSocial Apps A Field Guide to Working with the MySpace Platform (11-2009) (ATTiCA)......Page 8
Foreword......Page 16
Acknowledgments......Page 18
About the Authors......Page 19
Introduction......Page 21
I: Building Your First MySpace Application......Page 27
Creating the App—“Hello World”......Page 29
Summary......Page 33
The Two Concepts That Every Developer Should Know......Page 35
Starting Our Tic-Tac-Toe App......Page 36
Accessing MySpace User Data......Page 37
Error Handling......Page 50
Summary......Page 53
How to Fetch a Friend List and Make Use of the Data......Page 55
Fetching Media......Page 65
Using opensocial.requestPermission and opensocial.hasPermission to Check a User’s Permission Settings......Page 69
Summary......Page 71
App Data Store......Page 73
Cookies......Page 82
Third-Party Database Storage......Page 90
Summary......Page 91
Using opensocial.requestShareApp to Spread Your App to Other Users......Page 93
Using opensocial.requestSendMessage to Send Messages and Communications......Page 100
Getting Your App Listed on the Friend Updates with opensocial.requestCreateActivity Basics......Page 105
Sending Notifications......Page 114
Summary......Page 116
Communicating with External Servers......Page 117
Mashups......Page 118
Adding a Feed Reader to Our App......Page 119
Adding an Image Search......Page 138
Summary......Page 140
Turn-Based Games......Page 143
Supporting Person-to-Person Game Play......Page 159
Finishing and Clearing a Game......Page 170
“Real-Time” Play......Page 172
Summary......Page 174
II: Other Ways to Build Apps......Page 177
What Is OAuth?......Page 179
Secure Phone Home......Page 183
Spicing Up the Home and Profile Surfaces Using makeRequest......Page 199
Summary......Page 200
9 External Iframe Apps......Page 203
REST APIs......Page 204
Sending Messages Using IFPC......Page 234
Summary......Page 238
The Big Picture......Page 239
Writing a Gadget......Page 240
Data Pipelining......Page 245
OpenSocial Markup Language (OSML)......Page 251
Putting It Together: OSML Tic-Tac-Toe......Page 252
Summary......Page 264
Inline Tag Templates......Page 265
Working with Subviews......Page 271
HTML Fragment Rendering......Page 274
Data Listeners......Page 276
Internationalization and Message Bundles......Page 281
Summary......Page 286
III: Growth and How to Deal with It......Page 289
Publishing Your App......Page 291
Managing Your App......Page 300
Managing Developers......Page 305
Suspension and Deletion of Your App......Page 306
Summary......Page 307
Performance and Responsiveness......Page 309
Design for Scale......Page 318
Stability and Fault Tolerance......Page 325
User and Application Security......Page 326
Summary......Page 329
14 Marketing and Monetizing......Page 331
Using MySpace to Promote Your App......Page 332
User Base and Viral Spreading......Page 335
Ads......Page 337
Micropayments......Page 342
Interviews with Successful App Developers......Page 344
Summary......Page 352
15 Porting Your App to OpenSocial 0.9......Page 355
Media Item Support......Page 356
Simplification of App Data......Page 367
REST APIs......Page 369
Summary......Page 374
References......Page 377
A......Page 381
B......Page 382
C......Page 383
D......Page 384
E......Page 386
F......Page 387
G......Page 388
H......Page 389
I......Page 390
J......Page 391
M......Page 392
O......Page 394
P......Page 397
R......Page 399
S......Page 401
T......Page 402
U......Page 403
W......Page 404
Y......Page 405