Cover; Table of Contents; Preface; Chapter 1: Getting to Grips with the Facebook Platform; The Purpose of the Facebook Platform; The Standard Web Application Model; The Facebook Web Application Model; The Facebook Platform Elements; The Facebook API; The Facebook API Test Console; FBML; The FBML Test Console; FQL; Obtaining the Facebook Client Libraries; Adding the Developer Application; Setting Up Your Application; Required Fields; Optional Fields; Base Options; Installation Options; Integration Points; Summary; Chapter 2: Building a Facebook Application; A Simple Facebook Application
Text of Note
Getting the Server Ready for ActionCreating Your First Facebook Application; The Application Initiation Code; The Application Code; Viewing the New Application; Developing the Simple Application; Examining Variables; Using FQL in Your Application; Writing to the Facebook Profile; Updating the Facebook Cache; Mock Ajax and Your Facebook Profile; Using a Form on Your Profile; Creating a Dynamic Combo-Box; Limiting Access to the Form; Storing Data-Keeping Files on Your Server; Storing FBML on Your Server; Storing Data on Your Server; Summary; Chapter 3: Databases, Dashboards, and the Profile
Text of Note
Setting up the DatabaseSetting the Root Password; Creating the Database; Adding a User; A Table for Our Data; Migrating Data; Accessing the Database from Your Facebook Application; Connecting to the Database; Using a Remote Database; Running Queries on the Database; Obtaining Data from the Database; Inserting Data into the Database; Deleting Data from the Database; Analyzing the Database; Calculating the Number Items in a Table; Grouping and Ordering Data; Updating Everyone's Profile; Updating the Facebook Cache-Remotely; Obtaining the Application Session ID
Text of Note
The Facebook Contextual DialogSummary; Chapter 4: Cooking User Data; How to Fetch User Data; FBML; fb:name; fb:pronoun; fb:profile-pic; fb:user; Logical Tags; fb:is-in-network; fb:if-can-see; fb:if-can-see-photo; fb: if-is-friends-with-viewer; fb:is-if-group-member; fb:is-own-profile; fb:if-is-user; fb:if-user-has-added-app; fb:if-is-app-user; FQL; Let's Have a Look at the Schema; JOIN as Sub Query; Effective Searching with Structures; Common Snippets; Find All the friends of a User; Find All Friends Who Have the Current Application Installed; Find All Friends Whose Birthday Is Tomorrow
Text of Note
Using the Session ID to Write to a ProfileUpdating More Than One User's Profile; Automating the Facebook Cache Update; A Simple Batch File; Using At Command to Control the Batch File; Using Cron to Control the Batch File; Pros and Cons of the Methods; Tracking Users; A Table for Your Users; Finding Your Application ID; Adding New Users; Removing a User; Defining a Post-Remove URL; Producing a List of Users; The Facebook Dashboard; Adding a Dashboard; Adding Help to the Dashboard; Adding an Action to the Dashboard; The Dashboard Create Button; Facebook JavaScript