You are previewing Facebook Cookbook.
O'Reilly logo
Facebook Cookbook

Book Description

Want to build Facebook applications that truly stand out among the thousands already available? In addition to providing easy-to-follow recipes that offer practical ways to design and build scalable applications using the Facebook Platform and its new profile design, this Cookbook also explains proven strategies for attracting users in this highly competitive environment. With plenty of examples and practical solutions, Facebook Cookbook answers some of the hardest questions Facebook application developers contend with -- including how and where to get started. This Cookbook will help you:

  • Learn to build an application that scales to accommodate a sudden influx of users

  • Explore changes from Facebook's old profile design to the new look and feel

  • Take advantage of new integration points in the new profile design

  • Get tips for designing applications with hosting and deployment costs in mind

  • Discover which widgets and controls to use for building the most attractive user interface design

  • Learn the differences between standard HTML, JavaScript, and SQL, and the versions used on the Facebook Platform

  • Target large, defined groups on Facebook, including those who want to find jobs, hire employees, market a business, advertise, and more

If you can build simple web applications with HTML, Facebook Cookbook will help you build applications with the potential to reach millions of users around the globe. Learn what it takes to design applications that stand above the rest.

Table of Contents

  1. Facebook Cookbook
    1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
    2. Contributors
    3. Preface
      1. Who Should Read This Book
      2. What’s in This Book?
      3. Code Samples
      4. Keeping Up with the Facebookers
      5. Using Code Examples
      6. Safari® Books Online
      7. Comments and Questions
      8. Thanks!
      9. Apologies to Eli
    4. 1. Introducing Facebook Platform
      1. What Exactly Is Facebook Platform?
      2. Skills to Pay the Bills
      3. Facebook Platform Off-Facebook
      4. Facebook Platform Versus Google OpenSocial
        1. What Exactly Is OpenSocial?
        2. Who’s Going to Win?
        3. What Should I Do?
      5. Saddle Up!
    5. 2. Ideation and Strategy
      1. Which Types of Apps Are the Most Popular?
        1. Problem
        2. Solution
        3. Discussion
      2. Which Apps Are Most Popular?
        1. Problem
        2. Solution
        3. Discussion
      3. Test-Driving Ideas with Facebook Polls
        1. Problem
        2. Solution
        3. Discussion
      4. The Winning Formula for Facebook
        1. Problem
        2. Solution
        3. Discussion
          1. Try to build an application that is social in nature
          2. Clean or vibrant look
          3. Seasonal or long-term prospects
          4. When to monetize
          5. Scalability
          6. Branding and appeal
      5. Where’s the Money?
        1. Problem
        2. Solution
        3. Discussion
      6. Google AdSense and Facebook
        1. Problem
        2. Solution
        3. Discussion
      7. Funding Facebook Development
        1. Problem
        2. Solution
        3. Discussion
      8. Facebook Platform Integration Points
        1. Problem
        2. Solution
        3. Discussion
      9. Application Directory
        1. Problem
        2. Solution
        3. Discussion
          1. Application icon
          2. Application logo
          3. Application description
          4. Application picture
          5. Application categories
          6. Measuring About Page success
      10. Navigating the Applications Menu
        1. Problem
        2. Solution
      11. Facebook Canvas Pages
        1. Problem
        2. Solution
        3. Discussion
      12. Think Outside the Profile Box
        1. Problem
        2. Solution
        3. Discussion
      13. Info Sections
        1. Problem
        2. Solution
        3. Discussion
      14. News Feed and Mini-Feed
        1. Problem
        2. Solution
        3. Discussion
      15. Noteworthy Notifications
        1. Problem
        2. Solution
        3. Discussion
      16. Understanding Allocations
        1. Problem
        2. Solution
        3. Discussion
      17. Attachments and the Publisher
        1. Problem
        2. Solution
        3. Discussion
      18. Requests
        1. Problem
        2. Solution and Discussion
      19. Tabs
        1. Problem
        2. Solution
        3. Discussion
      20. Guiding Principles of App Strategy
        1. Problem
        2. Solution
        3. Discussion
      21. Community Gardening
        1. Problem
        2. Solution
        3. Discussion
      22. Finding Inspiration
        1. Problem
        2. Solution
        3. Discussion
    6. 3. Hello World
      1. Installing the Facebook Developer App
        1. Problem
        2. Solution
        3. Discussion
      2. Setting Up a New App
        1. Problem
        2. Solution
        3. Discussion
          1. Base Options
          2. Internationalization Options
          3. Installation Options
          4. Integration Points
      3. Hello World
        1. Problem
        2. Solution
        3. Discussion
      4. Installing Your App: It’s All About the About Page
        1. Problem
        2. Solution
        3. Discussion
    7. 4. Architecture and Design
      1. Under the Hood: How Facebook Apps Work
        1. Problem
        2. Solution
        3. Discussion
      2. Architecting for the Future: Open Web Apps
        1. Problem
        2. Solution
        3. Discussion
      3. Build Now, Scale Later: Getting Real
        1. Problem
        2. Solution
        3. Discussion
      4. Scalability
        1. Problem
        2. Solution
        3. Discussion
          1. Monitoring software
          2. Application source code
          3. Database
          4. Hardware/OS/software utilities
          5. User interface/support systems
      5. Language Selection As Architecture
        1. Problem
        2. Solution
        3. Discussion
      6. Cross-Language Development with Facebook Thrift
        1. Problem
        2. Solution
        3. Discussion
      7. The Database Is Dead! Long Live memcached!
        1. Problem
        2. Solution
        3. Discussion
      8. Advanced Caching with Nginx and memcached
        1. Problem
        2. Solution
        3. Discussion
      9. Standing on the Shoulders of Giants: Hosting with Amazon Web Services
        1. Problem
        2. Solution
        3. Discussion
      10. Integrating Drupal and Facebook
        1. Problem
        2. Solution
        3. Discussion
      11. App Design Process
        1. Problem
        2. Solution
        3. Discussion
          1. Know thy user
          2. Gooooooooooooaaaaaaaaaal!
          3. Frame the problem
          4. Making a mockery
          5. Build it!
      12. The Facebook User Interface Widgets
        1. Problem
        2. Solution
        3. Discussion
          1. Simple UI widgets
          2. UI conventions
      13. Facebook’s Global User Interface
        1. Problem
        2. Solution
        3. Discussion
    8. 5. Setting Up Your Environment
      1. Creating a Test Account
        1. Problem
        2. Solution
        3. Discussion
      2. Facebook Clients
        1. Problem
        2. Solution
        3. Discussion
      3. JavaScript Client Library
        1. Problem
        2. Solution
        3. Discussion
      4. Starting Out in PHP
        1. Problem
        2. Solution
        3. Discussion
      5. Demo Applications
        1. Problem
        2. Solution and Discussion
      6. Developer Documentation
        1. Problem
        2. Solution
        3. Discussion
      7. Test Consoles
        1. Problem
        2. Solution
        3. Discussion
      8. Developer Forums: Help!
        1. Problem
        2. Solution
        3. Discussion
      9. Facebook Bug Squashing
        1. Problem
        2. Solution
        3. Discussion
      10. Facebook Developer Software Toolbox
        1. Problem
        2. Solution
        3. Discussion
          1. Mac OS X
          2. Windows
          3. Linux
          4. Eclipse
      11. Weekly Facebook Pushes
        1. Problem
        2. Solution
        3. Discussion
      12. Hosting
        1. Problem
        2. Solution
        3. Discussion
          1. Joyent Facebook developers program
          2. Amazon Web Services (AWS)
      13. Amazonian Backends: Simple Storage Solution
        1. Problem
        2. Solution
        3. Discussion
          1. Setting up your AWS account
          2. Getting foxy with S3Fox
          3. Buckets of files
          4. Interacting with S3’s API
      14. Amazonian Backends: Hosting on Elastic Cloud Computing
        1. Problem
        2. Solution
        3. Discussion
      15. Staying Up-to-Date
        1. Problem
        2. Solution
        3. Discussion
    9. 6. Facebook Markup Language (FBML)
      1. What Is FBML?
        1. Problem
        2. Solution
        3. Discussion
      2. Categories of FBML Tags
        1. Problem
        2. Solution
        3. Discussion
      3. FBML Versions
        1. Problem
        2. Solution
        3. Discussion
      4. A Rose by Any Other Name: Forced Renaming
        1. Problem
        2. Solution
        3. Discussion
      5. Web Standards
        1. Problem
        2. Solution
        3. Discussion
          1. Resources
      6. Displaying a User’s Name
        1. Problem
        2. Solution
        3. Discussion
      7. He Said, She Said: Dealing with Pronouns
        1. Problem
        2. Solution
        3. Discussion
      8. Worth a Thousand Words: Profile Pictures
        1. Problem
        2. Solution
        3. Discussion
      9. Linking to Events
        1. Problem
        2. Solution
        3. Discussion
      10. Linking to Groups
        1. Problem
        2. Solution
        3. Discussion
      11. Linking to Networks
        1. Problem
        2. Solution
        3. Discussion
      12. Display Content to Group Members
        1. Problem
        2. Solution
        3. Discussion
      13. Display Content to Network Members
        1. Problem
        2. Solution
        3. Discussion
      14. Displaying Content to App Users
        1. Problem
        2. Solution
        3. Discussion
      15. Displaying Content to Friends
        1. Problem
        2. Solution
        3. Discussion
      16. Displaying/Hiding Content to/from Specific Users
        1. Problem
        2. Solution
        3. Discussion
      17. Displaying Random Content
        1. Problem
        2. Solution
        3. Discussion
      18. Displaying Content to Specific Browsers
        1. Problem
        2. Solution
        3. Discussion
      19. Displaying Your Application’s Name
        1. Problem
        2. Solution and Discussion
      20. Formatting Relative Time
        1. Problem
        2. Solution
        3. Discussion
      21. Making Content Visible to Some Users in Profile Boxes
        1. Problem
        2. Solution
        3. Discussion
      22. Hiding Private Profile Content
        1. Problem
        2. Solution
        3. Discussion
      23. Hiding Private Photos
        1. Problem
        2. Solution
        3. Discussion
      24. Embedding an iFrame
        1. Problem
        2. Solution
        3. Discussion
      25. Embedding Facebook Photos
        1. Problem
        2. Solution
        3. Discussion
      26. Embedding MP3s
        1. Problem
        2. Solution
        3. Discussion
      27. Embedding Adobe Flash
        1. Problem
        2. Solution
        3. Discussion
          1. Enhancing security in your Flash
      28. Embedding Flash Video
        1. Problem
        2. Solution
        3. Discussion
      29. Embedding Microsoft Silverlight
        1. Problem
        2. Solution
        3. Discussion
      30. Wide Versus Narrow Profile Boxes
        1. Problem
        2. Solution
        3. Discussion
      31. Tabling Users
        1. Problem
        2. Solution
        3. Discussion
      32. Page and Box Titles
        1. Problem
        2. Solution
        3. Discussion
      33. Profile Box Subtitles
        1. Problem
        2. Solution
        3. Discussion
      34. Forms the Facebook Way
        1. Problem
        2. Solution
        3. Discussion
          1. fb:editor
          2. fb:editor-custom
          3. fb:editor-text
          4. fb:editor-textarea
          5. fb:editor-time
          6. fb:editor-month
          7. fb:editor-date
          8. fb:editor-button
      35. Heads Up! Heading Your App Pages
        1. Problem
        2. Solution
        3. Discussion
      36. Dashing Dashboards: Heading Your App Pages
        1. Problem
        2. Solution
        3. Discussion
      37. Tabs Ahoy!
        1. Problem
        2. Solution
        3. Discussion
      38. Media Headers
        1. Problem
        2. Solution
        3. Discussion
      39. Errors, Explanation, and Success: Displaying Messages (Oh My!)
        1. Problem
        2. Solution
        3. Discussion
      40. Discussion Boards Made Simple
        1. Problem
        2. Solution
        3. Discussion
      41. Giving Users a Voice: Wall Posts in Your App
        1. Problem
        2. Solution
        3. Discussion
      42. Adding Profile Boxes and Info Sections
        1. Problem
        2. Solution
        3. Discussion
      43. Prompting for Extended Permissions
        1. Problem
        2. Solution
        3. Discussion
      44. You Can Pick Your Friends
        1. Problem
        2. Solution
        3. Discussion
      45. You Can Pick Your Friends (in Batches)
        1. Problem
        2. Solution
        3. Discussion
      46. Invitations and Requests
        1. Problem
        2. Solution
        3. Discussion
          1. Inviting/requesting friends in bulk
          2. Inviting/requesting a small number of specific friends
          3. Inviting/requesting a single user
      47. Predicting the Future with Type-Ahead Controls
        1. Problem
        2. Solution
        3. Discussion
      48. Using FBML Inside FBJS
        1. Problem
        2. Solution
        3. Discussion
      49. Dialogs That Pop
        1. Problem
        2. Solution
        3. Discussion
      50. Dialogs in Context
        1. Problem
        2. Solution and Discussion
      51. Dialogs with Ajax
        1. Problem
        2. Solution
      52. Facebook Share Buttons
        1. Problem
        2. Solution
        3. Discussion
      53. Feed Forms: Publishing Feed Stories from FBML
        1. Problem
        2. Solution
        3. Discussion
      54. Redirecting to a Different URL
        1. Problem
        2. Solution
        3. Discussion
      55. Painless Image Submitting
        1. Problem
        2. Solution
        3. Discussion
      56. Hunting for Robots: CAPTCHA in Your App
        1. Problem
        2. Solution
        3. Discussion
      57. FBML Caching
        1. Problem
        2. Solution
        3. Discussion
      58. Analyzing Traffic with Google Analytics
        1. Problem
        2. Solution
        3. Discussion
      59. Translations
        1. Problem
        2. Solution
        3. Discussion
      60. Valid HTML Tags
        1. Problem
        2. Solution
        3. Discussion
      61. Facebook and CSS: FBSS?
        1. Problem
        2. Solution
        3. Discussion
      62. Beating the CSS, JavaScript, and Image Cache
        1. Problem
        2. Solution
        3. Discussion
    10. 7. Facebook JavaScript (FBJS)
      1. Dealing with Sandbox Renaming
        1. Problem
        2. Solution
        3. Discussion
      2. Losing Your < >s
        1. Problem
        2. Solution
        3. Discussion
      3. Retrieving DOM Elements
        1. Problem
        2. Solution
        3. Discussion
      4. Manipulating DOM Elements
        1. Problem
        2. Solution
      5. Manipulating CSS Styles
        1. Problem
        2. Solution
        3. Discussion
      6. Manipulating CSS Class Names
        1. Problem
        2. Solution
        3. Discussion
      7. Dynamically Setting Content
        1. Problem
        2. Solution
        3. Discussion
      8. Textbox Selections
        1. Problem
        2. Solution
        3. Discussion
      9. Limiting the Length of Text Fields
        1. Problem
        2. Solution
        3. Discussion
      10. Creating Elements Dynamically
        1. Problem
        2. Solution
        3. Discussion
      11. Adding and Removing Event Listeners
        1. Problem
        2. Solution
        3. Discussion
      12. Retrieving Data via Ajax
        1. Problem
        2. Solution
        3. Discussion
      13. Displaying Pop-Up Dialogs
        1. Problem
        2. Solution
        3. Discussion
      14. Displaying Contextual Dialogs
        1. Problem
        2. Solution
        3. Discussion
      15. Avoiding Heartache When the DOM Changes
        1. Problem
        2. Solution
        3. Discussion
      16. Linking to External FBJS Files
        1. Problem
        2. Solution
        3. Discussion
      17. Use Firebug (No, Seriously)
        1. Problem
        2. Solution
        3. Discussion
      18. Accessing the DOM Behind FBJS
        1. Problem
        2. Solution and Discussion
      19. Ajax Library: Backface
        1. Problem
        2. Solution
        3. Discussion
    11. 8. Facebook Query Language (FQL)
      1. Playing with FQL
        1. Problem
        2. Solution
        3. Discussion
      2. FQL Query Structure
        1. Problem
        2. Solution
        3. Discussion
      3. Functions and Operators
        1. Problem
        2. Solution
        3. Discussion
      4. Indexed Facebook Tables and Fields
        1. Problem
        2. Solution
      5. Advanced Relational Database Table Optimization
        1. Problem
        2. Solution
          1. Denormalization
          2. Cached counters
          3. Precalculated sums
        3. Discussion
          1. Next steps
      6. Album Table
        1. Problem
        2. Solution
        3. Discussion
      7. Retrieving an Album
        1. Problem
        2. Solution
        3. Discussion
      8. Counting All of a User’s Photos
        1. Problem
        2. Solution
        3. Discussion
      9. Retrieving Five Albums for a User
        1. Problem
        2. Solution
        3. Discussion
      10. Cookie Table
        1. Problem
        2. Solution
        3. Discussion
      11. Retrieving All Cookies for a User
        1. Problem
        2. Solution
        3. Discussion
      12. Retrieving a Specific Cookie
        1. Problem
        2. Solution
        3. Discussion
      13. Retrieving All Cookies for a Specific Path
        1. Problem
        2. Solution and Discussion
      14. Metrics Table
        1. Problem
        2. Solution
        3. Discussion
      15. Retrieving Yesterday’s Metrics
        1. Problem
        2. Solution
        3. Discussion
      16. Retrieving Metrics for a Date Range
        1. Problem
        2. Solution
        3. Discussion
      17. Alerting Yourself
        1. Problem
        2. Solution
        3. Discussion
      18. Event Table
        1. Problem
        2. Solution
        3. Discussion
      19. Event Member Table
        1. Problem
        2. Solution
        3. Discussion
      20. Retrieving an Event
        1. Problem
        2. Solution
        3. Discussion
      21. Retrieving Events Created by a User
        1. Problem
        2. Solution
        3. Discussion
      22. Retrieving a User’s Events
        1. Problem
        2. Solution
        3. Discussion
      23. Retrieving a User’s Events with a Specific RSVP
        1. Problem
        2. Solution
        3. Discussion
      24. Retrieving Events Two Users Are Attending
        1. Problem
        2. Solution
        3. Discussion
      25. Friend Table
        1. Problem
        2. Solution
        3. Discussion
      26. Friend Request Table
        1. Problem
        2. Solution
        3. Discussion
      27. Retrieving a User’s Friends
        1. Problem
        2. Solution
        3. Discussion
      28. Checking Whether Two Users are Friends
        1. Problem
        2. Solution
        3. Discussion
      29. Retrieving a User’s Pending Friend Requests
        1. Problem
        2. Solution
        3. Discussion
      30. Checking for a Friend Request Between Two Users
        1. Problem
        2. Solution
        3. Discussion
      31. Friend List Table
        1. Problem
        2. Solution
        3. Discussion
      32. Friend List Members Table
        1. Problem
        2. Solution
        3. Discussion
      33. Retrieving a User’s Friend Lists
        1. Problem
        2. Solution
        3. Discussion
      34. Retrieving a Specific Friend List
        1. Problem
        2. Solution
        3. Discussion
      35. Retrieving Friends in Friend Lists
        1. Problem
        2. Solution
        3. Discussion
      36. Retrieving Friends in a Specific Friend List
        1. Problem
        2. Solution
        3. Discussion
      37. Groups Table
        1. Problem
        2. Solution
        3. Discussion
      38. Group Member Table
        1. Problem
        2. Solution
        3. Discussion
      39. Retrieving a Specific Group
        1. Problem
        2. Solution
        3. Discussion
      40. Retrieving a User’s Groups
        1. Problem
        2. Solution
        3. Discussion
      41. Checking Whether Two Users Are in the Same Group
        1. Problem
        2. Solution
        3. Discussion
      42. Listing Table
        1. Problem
        2. Solution
        3. Discussion
      43. Retrieving a Listing
        1. Problem
        2. Solution
        3. Discussion
      44. Retrieving a User’s Listings
        1. Problem
        2. Solution
        3. Discussion
      45. Retrieving a User’s Friends’ Listings
        1. Problem
        2. Solution
        3. Discussion
      46. Retrieving a User’s Listings by Category
        1. Problem
        2. Solution
        3. Discussion
      47. Page Table
        1. Problem
        2. Solution
        3. Discussion
      48. Page Fan Table
        1. Problem
        2. Solution
        3. Discussion
      49. Retrieving a Page
        1. Problem
        2. Solution
        3. Discussion
      50. Retrieving a User’s Pages
        1. Problem
        2. Solution
        3. Discussion
      51. Photo Table
        1. Problem
        2. Solution
        3. Discussion
      52. Photo Tag Table
        1. Problem
        2. Solution
        3. Discussion
      53. Retrieving the 10 Most Recent Photos from a User
        1. Problem
        2. Solution
        3. Discussion
      54. Retrieving All Photos a User Is Tagged In
        1. Problem
        2. Solution
        3. Discussion
      55. User Table
        1. Problem
        2. Solution
        3. Discussion
      56. App Friends
        1. Problem
        2. Solution
        3. Discussion
      57. Birthday Friends
        1. Problem
        2. Solution
        3. Discussion
      58. 600 Errors
        1. Problem
        2. Solution
        3. Discussion
      59. Preload FQL
        1. Problem
        2. Solution and Discussion
    12. 9. Facebook API
      1. What’s an API?
        1. Problem
        2. Solution
        3. Discussion
      2. Getting Started with the Client Library
        1. Problem
        2. Solution
        3. Discussion
      3. RESTing with Facebook
        1. Problem
        2. Solution
        3. Discussion
      4. Storable Data
        1. Problem
        2. Solution
        3. Discussion
      5. Authenticating Users
        1. Problem
        2. Solution
        3. Discussion
      6. Creating a Session Key
        1. Problem
        2. Solution
        3. Discussion
      7. Creating an Infinite Session Key
        1. Problem
        2. Solution
        3. Discussion
      8. Getting a Session (Desktop Only)
        1. Problem
        2. Solution
        3. Discussion
      9. Creating an Auth Token (Desktop Only)
        1. Problem
        2. Solution
        3. Discussion
      10. Making Calls (Desktop Only)
        1. Problem
        2. Solution
        3. Discussion
      11. Logging Out
        1. Problem
        2. Solution and Discussion
      12. Getting Allocations
        1. Problem
        2. Solution
        3. Discussion
      13. Getting Metrics
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      14. Getting and Setting Application Properties
        1. Problem
        2. Solution
        3. Discussion
      15. Getting an App’s 4-1-1
        1. Problem
        2. Solution
        3. Discussion
      16. Batching Calls
        1. Problem
        2. Solution
        3. Discussion
          1. Return by reference
      17. Getting and Setting Cookies
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      18. Getting Events
        1. Problem
        2. Solution
        3. Discussion
          1. FQL Equivalent
      19. Getting Event Members
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      20. Refreshing FBML Caches
        1. Problem
        2. Solution
        3. Discussion
      21. Getting a (Ref) Handle on FBML
        1. Problem
        2. Solution
        3. Discussion
      22. Three Story Sizes: Working with Template Bundles
        1. Problem
        2. Solution
        3. Discussion
          1. Feed story example: Causes
          2. About tokens
          3. Getting all of your templates
          4. Getting a template bundle
          5. Deactivating a template bundle
      23. Publishing News and Mini-Feed Stories
        1. Problem
        2. Solution
        3. Discussion
      24. Story Aggregation
        1. Problem
        2. Solution
        3. Discussion
      25. Setting Info Sections
        1. Problem
        2. Solution
        3. Discussion
          1. Getting Info sections
          2. Adding options
          3. Getting Options
      26. FQL Queries
        1. Problem
        2. Solution and Discussion
      27. Friends?
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      28. Get Friends
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      29. Get Friends Who Use My App
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      30. Get Friend Lists
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      31. Get Groups
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      32. Get Group Members
        1. Problem
        2. Solution
        3. Description
          1. FQL equivalent
      33. Creating/Modifying Marketplace Listings
        1. Problem
        2. Solution
        3. Discussion
      34. Get Marketplace Listings
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      35. Get Marketplace Categories and Subcategories
        1. Problem
        2. Solution
        3. Discussion
      36. Deleting Marketplace Listings
        1. Problem
        2. Solution
        3. Discussion
      37. Searching the Marketplace
        1. Problem
        2. Solution
        3. Discussion
      38. Sending Notifications
        1. Problem
        2. Solution
        3. Discussion
          1. Sending to friends
          2. Monitoring allocations
      39. Get Notifications
        1. Problem
        2. Solution
        3. Discussion
      40. Get Pages
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      41. Checking Page Properties
        1. Problem
        2. Solution
        3. Discussion
      42. Create a Photo Album
        1. Problem
        2. Solution
        3. Discussion
      43. Get Photo Albums
        1. Problem
        2. Solution
        3. Discussion
      44. Get Photos
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      45. Uploading a Photo
        1. Problem
        2. Solution
        3. Discussion
      46. Adding Tags to Photos
        1. Problem
        2. Solution
        3. Discussion
      47. Getting and Setting Profile FBML
        1. Problem
        2. Solution
        3. Discussion
      48. Get a User’s Info
        1. Problem
        2. Solution
        3. Discussion
          1. FQL equivalent
      49. Get Logged-In User
        1. Problem
        2. Solution
        3. Discussion
      50. Has a User Added My App?
        1. Problem
        2. Solution
        3. Discussion
      51. Setting Status
        1. Problem
        2. Solution
        3. Discussion
      52. Extended Permissions
        1. Problem
        2. Solution
        3. Discussion
      53. Checking Extended Permissions
        1. Problem
        2. Solution
        3. Discussion
      54. Storing Data with the Data Store API
        1. Problem
        2. Solution
        3. Discussion
      55. Granting Permissions to Other Applications Via the Permissions API
        1. Problem
        2. Solution
        3. Discussion
      56. Post-Remove (Uninstall) URL
        1. Problem
        2. Solution
        3. Discussion
      57. Adding Missing PHP Client Library Methods
        1. Problem
        2. Solution
        3. Discussion
      58. Error Codes
        1. Problem
        2. Solution
        3. Discussion
    13. 10. Marketing Your App
      1. Attracting Users Through Facebook Ads
        1. Problem
        2. Solution
        3. Discussion
      2. Monetize, Measure, and Market with SocialMedia
        1. Problem
        2. Solution
        3. Discussion
      3. Social Network Advertising with Cubics
        1. Problem
        2. Solution
        3. Discussion
      4. Other Ad Networks
        1. Problem
        2. Solution
        3. Discussion
      5. Spreading Your App via Google AdWords
        1. Problem
        2. Solution
        3. Discussion
      6. Measuring Your Success
        1. Problem
        2. Solution
        3. Discussion
          1. Virality
          2. Engagement
          3. How to measure
      7. Work the Integration Points
        1. Problem
        2. Solution
        3. Discussion
      8. Continuous Improvement Through A/B Testing
        1. Problem
        2. Solution
        3. Discussion
      9. The Great Apps Program
        1. Problem
        2. Solution
        3. Discussion
      10. Application Verification Program
        1. Problem
        2. Solution
        3. Discussion
    14. Index
    15. About the Author
    16. Colophon
    17. SPECIAL OFFER: Upgrade this ebook with O’Reilly