How to Do Everything: Facebook Applications

  • ISBN13:


  • ISBN10:


  • Edition: 1st
  • Format: Paperback
  • Copyright: 2008-03-03
  • Publisher: McGraw-Hill Education
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $32.00 Save up to $6.40
  • Buy New


Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.


The first book to show how to create apps for the hottest social networking site This hands-on guide teaches you how to build applications that run on the most popular social networking site among college students, professionals and business users. Written in the popular, easy-tofollow How to Do Everything format, this book is designed to enable even those with minimal technical skills to create Facebook Platform applications. With coverage of all the technologies involved, including Facebook Platform API, FBML, FQL, MySQL, and REST, How to Do Everything: Facebook Applications provides a single source of structured guidance that is far easier to understand than the disparate tutorials available on the Web. You will learn how integrate Facebook applications with websites and databases, and use your applications to sell a product or market a business, non-profit organization, or political cause. A pre-built, customizable Facebook application will be available for download.

Author Biography

Jesse Feiler has worked as a developer for companies such as the Federal Reserve Bank of New York, Prodigy, and Apple. He is the author of several computing books, including How to Do Everything with Web 2.0 Mashups.

Table of Contents

Acknowledgmentsp. xv
Introductionp. xvii
Facebook Applications: What They Are and How to Use Them
Use Facebook as a Social Utilityp. 3
Understand the Facebook Worldp. 5
Social Utilityp. 5
Viralityp. 5
Social Graphp. 6
Web 2.0p. 6
The Size of the Facebook Worldp. 6
Use Facebook Basicsp. 7
Profile and Preferencesp. 7
Facebook Applicationsp. 10
Networksp. 10
The Wallp. 11
Find Your Way Around Your Facebook Home Page and Profilep. 13
Use Basic Navigationp. 15
The Facebook Framep. 15
The Left-Hand Column (Left Nav)p. 17
The Footer Linksp. 17
The Canvasp. 18
Manage Your Accountp. 19
Account Settingsp. 19
Use Your Home Pagep. 21
Home Page Contentsp. 21
Controlling Your Home Pagep. 22
Platform Elements for the News Feedp. 28
Use Your Profilep. 29
Profile Page Layoutp. 29
Profile Informationp. 33
Visibility for Pokes, Messages, and Friend Requestsp. 37
Friends and Searchp. 39
Interact with Facebook Pagesp. 42
Find Your Way Around Facebookp. 45
Use the Mini-Feedp. 47
Platform Elements for the Mini-Feedp. 47
Use the Wallp. 47
Platform Elements for the Wallp. 49
Use the Inbox and Messagesp. 49
Work with Pokesp. 49
Platform Elements for Pokesp. 49
Handle Requests and Notificationsp. 50
Platform Elements for Requests and Notificationsp. 50
Use Friend Finder and Invite Friendsp. 51
Use Social Adsp. 52
Get Startedp. 53
Create a Facebook Pagep. 53
Choose the Audiencep. 55
Create the Adp. 57
Set the Budgetp. 58
Review the Ad and Payp. 60
Develop Pollsp. 61
Handle Subscriptionsp. 63
Find Your Way Around a Facebook Application: Groupsp. 65
Create and Manage Groupsp. 67
Create and Edit Groupsp. 68
Group Infop. 69
Picturep. 72
Use Groupsp. 73
View Discussion Boardp. 74
Message All Membersp. 74
Edit Group, Members, and Officers; Invitationsp. 75
Create Related Eventsp. 75
Use Facebook Identifiersp. 82
Use the Groups Applicationp. 82
Groups APIp. 82
Launch Groupsp. 84
My Groupsp. 85
Browse Groupsp. 86
Popularp. 87
Look at the Facebook Elements in Groups Pagesp. 87
Use Other Facebook Applicationsp. 91
Add and Edit Applications and Their Privacy Settingsp. 92
Add an Applicationp. 93
Control Application Privacy Settingsp. 95
Photosp. 99
Photo Albumsp. 100
Photosp. 102
Tagsp. 102
Eventsp. 104
Integrate Facebook Using Notes and Mobilep. 107
Import a Blogp. 108
Use a Mobile Phonep. 109
Use Facebook Technologies
Use XML, XHTML, and CSSp. 115
Use XML for Data Transferp. 117
Understand the Basics of XMLp. 118
Understand XML Syntaxp. 119
Use XML Elementsp. 120
Use XML Namespacesp. 121
Use XHTML on Your Facebook Pagesp. 122
Using div Elementsp. 122
The id Attribute and Facebookp. 124
Validate Your Facebook Web Page Syntaxp. 124
Debug Facebook XHTMLp. 124
Use CSS to Format Your Facebook Pagesp. 125
Facebook and Style Sheetsp. 126
Learn the Facebook Style Basicsp. 126
Use PHPp. 129
Understand PHP Basic Syntaxp. 132
Use PHP Delimitersp. 132
Use Commentsp. 132
Use Terminatorsp. 133
Use PHP Variables and Arraysp. 133
Use PHP Stringsp. 133
Building Concatenated Stringsp. 134
Use PHP Conditional Statementsp. 135
Use Multiple PHP Filesp. 137
Use PHP Functionsp. 137
Handle Exceptionsp. 139
Understand Overall Facebook Architecturep. 143
Work with the Architecturep. 144
How the Canvas Worksp. 145
How the Profile Page Worksp. 147
Use the Facebook Objectp. 147
Use the Facebook REST Objectp. 149
Parameters Are Provided for Youp. 151
Output Is Parsed for Youp. 151
How the Facebook REST Object Works Internallyp. 152
Use Facebook Markup Language (FBML)p. 155
Use the FBML Test Toolp. 158
Use FBML Data Elementsp. 159
Use FBML Control Elementsp. 160
Use the FBML Share Elementp. 161
Sharing a URLp. 163
Sharing Datap. 163
Use FBML Formsp. 164
Use FBML Dialogsp. 166
Use the Facebook APIp. 169
Use the User APIp. 171
users_getInfop. 171
users_getLoggedInUserp. 172
users_isAppAddedp. 173
Use the Profile APIp. 173
set_FBMLp. 173
get_FBMLp. 173
fbml_refreshImgSrcp. 173
fbml_refreshRefURLp. 173
fbml_setRefHandlep. 174
Use Events APIp. 174
events_getp. 174
events_getMembersp. 175
Use the Feed APIp. 175
feed_publishStoryToUserp. 175
feed_publishActionOfUserp. 176
feed_publishTemplatizedActionp. 176
Use the Friends APIp. 177
friends_areFriendsp. 177
friends_getp. 177
friends_getAppUsersp. 177
Use the Groups APIp. 177
groups_getp. 177
groups_getMembersp. 178
Use the Notifications APIp. 178
notifications_getp. 178
notifications_sendp. 178
notifications_sendEmailp. 179
Use the Photos APIp. 180
photos_getp. 180
photos_getAlbumsp. 180
photos_getTagsp. 181
Use the Marketplace APIp. 181
marketplace_createListingp. 181
marketplace_removeListingp. 182
marketplace_getCategoriesp. 182
marketplace_getSubCategoriesp. 182
marketplace_getListingsp. 182
marketplace_searchp. 182
Use Facebook Query Language (FQL), Mock-AJAX, FBJS, and Facebook Mobilep. 183
Use Facebook Query Language (FQL)p. 184
Use Dynamic FBML Action Attributesp. 186
Use Mock-AJAXp. 186
Use FBJSp. 187
Use Facebook Mobilep. 189
Watch for Further Developmentsp. 190
Build Facebook Applications
Get Started as a Facebook Developerp. 195
Add the Facebook Developer Applicationp. 196
Create a New Applicationp. 199
Set Up the New Applicationp. 200
Create the Application on Your Serverp. 200
Connect the Application to Facebookp. 203
Testp. 206
Update the About Pagep. 209
Add the Applicationp. 209
Create a Test Accountp. 212
Build a Basic Interfacep. 215
Decide What You Want to Dop. 216
Design the Applicationp. 218
Add Value to Facebookp. 218
Become Facebook-ishp. 219
Draw the Facebook Linep. 220
Obey the Rulesp. 221
Iteratep. 222
Start to Build the Sample Applicationp. 222
Decide What You Want to Dop. 222
Decide How You Want to Do Itp. 223
Design the Applicationp. 223
Set Up the Application Parametersp. 227
Implement the Basic Page and Navigationp. 228
Choose the Basic Designp. 228
Implement the Basic Designp. 231
Implement the Pagesp. 234
Home Pagep. 237
My Eventsp. 241
Friends' Eventsp. 242
Browse Eventsp. 242
Implement Utilitiesp. 243
Event Retrievalp. 243
Event Displayp. 245
Begin to Testp. 251
Integrate MySQL Datap. 253
Understand SQL Basicsp. 255
Use MySQLp. 257
Explore the Example Databasep. 258
Work with the Schemap. 258
Build the Database (if necessary)p. 262
Use MySQL Query Browser for Testingp. 265
Construct and Test the First Query (Adding/Removing Favorites)p. 269
Connect to the Databasep. 270
Send Parameters to the Scriptp. 271
Add to the Tablep. 272
Remove Items from the Tablep. 275
Putting It Togetherp. 275
Finish the PHP Work: Overviewp. 277
function get_from_database_and_render ($nColumns, $owner, $user)p. 277
function render_cae ($nColumns, $owner, $user, $results)p. 277
function render_cae_columnsp. 278
Finish the PHP Work: Detailsp. 278
function get_from_database_and_render ($nColumns, $owner, $user)p. 278
function render_cae ($nColumns, $owner, $user, $results)p. 283
function render_cae_columnsp. 285
Add More Featuresp. 287
Use Public Canvas Pages and Control Adding Applicationsp. 288
Greet the User by Namep. 290
Update the Profile Pagep. 290
Update the Profile Boxp. 291
Get the User's Textp. 292
Add News Feed and Mini-Feed Itemsp. 294
Actor and Targetp. 295
Titlep. 295
Bodyp. 296
Imagesp. 297
Targetsp. 297
Implement a Template Storyp. 298
Paginate Resultsp. 302
Design the Pagination Architecturep. 304
Use the Facebook Pagination Stylesp. 305
Change get_from_database_and_render Parametersp. 306
Change the Page That Calls get_from_database_and_renderp. 307
Implement Pagination in get_from_database_and_renderp. 308
Implement Let Friends Knowp. 313
Implement the Share Buttonp. 314
Add More SELECT Optionsp. 315
Add a Discussion Boardp. 317
Improve Securityp. 318
Get Started with Facebook Applicationsp. 319
Indexp. 321
Table of Contents provided by Ingram. All Rights Reserved.

Rewards Program

Write a Review