You are previewing FBML Essentials.
O'Reilly logo
FBML Essentials

Book Description

Do you have an idea for a Facebook application? With FBML Essentials, you'll learn how to build it quickly using the Facebook Markup Language (FBML) and other easy-to-use tools in the site's framework. If you can develop a website with HTML, writing a Facebook application with the help of this book will be a breeze. Of course, Facebook is not just another website. Any applications you write for it will have a potential audience of 16 million dedicated users. It's not just another social networking site, either. Under the surface, Facebook is pretty sophisticated, with a development toolkit that includes it's own modified version of HTML -- FBML -- to customize the look and feel of your Facebook applications. With FBML Essentials, you not only learn how to get started with this toolkit, you also get a complete reference on every FBML tag Facebook has ever written, with examples of how each tag works and advice on the best ways to use these tags in your code. This book includes:

  • A walkthrough of a sample Facebook application

  • Design rules for using images, CSS, JavaScript, and forms

  • Specific chapters on tags -- authorization tags, logic tags, user/group tags, profile-specific tags, and more

  • Messaging and alerts using FBML

  • Creating forms with FBML

  • Facebook navigation

  • Notifications and requests

  • Dynamic FBML attributes, including MockAJAX

  • How to test your FBML code

  • A chapter on FBJS, Facebook's version of JavaScript

If you want to try your hand at writing a Facebook application, you have a willing audience, an easy-to-use toolkit, and the perfect guide to get you started. FBML Essentials will help you take your idea from conception to working application in no time.

Table of Contents

  1. Special Upgrade Offer
  2. Foreword
  3. Preface
    1. The Facebook Platform Emerges
    2. FBML
      1. Developer Guidelines
    3. Useful Resources
      1. Tools and Documentation
      2. News and Information About Facebook Development
    4. Is This Book For You?
    5. Some Terms You Should Know
    6. Conventions Used in This Book
    7. Using Code Examples
    8. How to Contact Us
    9. Safari® Books Online
    10. Acknowledgments
  4. 1. “Hello Friends”
    1. The “Hello World” for Social Development
    2. Step 1: Set Up a Facebook Developer Account
    3. Step 2: Add the Developer App
    4. Step 3: Set Up the App
  5. 2. HTML Design in a Facebook Environment
    1. Forms in FBML
      1. The <form/> tag
        1. FBML-Specific Attributes
        2. Example FBML
        3. Rendered HTML for Single Instance of Tag
        4. Additional information
    2. Images in FBML
    3. CSS and DOM in FBML
    4. JavaScript in FBML
    5. Other Things to Consider
      1. User IDs and FBML
      2. Public Canvas Pages and SEO
      3. The <fb:is-logged-out/> tag
        1. Example FBML
        2. Rendered HTML for Single Instance of Tag
        3. Additional information
    6. Hosting
    7. The Facebook Platform Architecture
  6. 3. FBML Reference
    1. Facebook FBML Test Console
    2. Authorization Tags
      1. The “User” Authorization Tag
      2. Authorizing by User Agent
      3. Canvas Page Authorization Tags
      4. Profile and Facebook Page Authorization Tags
      5. Logic Tags
      6. Random Logic
      7. Messaging and Alerts in FBML
    3. Profile-Specific Tags
    4. Users, Groups, Events, Networks, and Applications
    5. HTML Display and Navigation
      1. General HTML Display Tags
      2. Page Navigation Tags
      3. Creating Forms With FBML
      4. Dialog Boxes in Facebook—The Facebook “Pop Up”
      5. Embedding Media With FBML
    6. Virally Promoting Your App With FBML
      1. Request and Notification Tags
      2. Feed Forms
      3. The Wall
      4. The <fb:add-section-button/> Tag
    7. Miscellaneous Tools for Rendering Data Using FBML
    8. Dynamic FBML Attributes
      1. Visibility Attributes
      2. Mock AJAX
      3. Data Access for JavaScript and Dynamic Rendering in FBML
  7. 4. FBJS Reference
    1. Introduction
    2. General Information
    3. Event Listeners
    4. AJAX
    5. Dialogs
    6. Visualization
    7. Conclusion
  8. Afterword
  9. Index
  10. About the Author
  11. Colophon
  12. Special Upgrade Offer
  13. Copyright