Skip to Content
FBML Essentials
book

FBML Essentials

by Jesse Stay
July 2008
Beginner
192 pages
4h 41m
English
O'Reilly Media, Inc.
Content preview from FBML Essentials

Virally Promoting Your App With FBML

The following section describes several tags that you can use to virally promote your application. One of the strengths of Facebook is the rich access it provides to friends lists, and the tools it offers for promoting applications through those friends. As an application developer, with just knowledge of FBML you can do many things to spread your app to others on Facebook very quickly.

Request and Notification Tags

Notification tags require some API knowledge and access, but as you saw in the “Hello Friends” example in Chapter 1, with request tags you can create simple invite forms using just a series of FBML tags.

Feed Forms

Feed forms are another shortcut you can take for virally spreading your application. By adding a simple fbtype attribute to your form, Facebook will intercept your form submission and present the user with a dialog box that asks if the user would like to publish a news item to either their Mini-Feed or their friends’ News Feeds. The code referenced in the action parameter of the form should return JSON data in the form of a News Feed template. The following is an example of the form you submit. Notice the fbtype attribute in the form (you can also see this in action in the FBML Essentials app on Facebook):

<form fbtype="feedStory" action= "http://fbmlessentials.staynalive.com/index.php"> <input type="text" name="status" value="" /> <input type="hidden" name="submit" value="1" /> <input type="hidden" name="action" value="feedforms" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Three Traps That Stymie Reinvention

The Three Traps That Stymie Reinvention

Ryan Raffaelli
What Is Polycloud?

What Is Polycloud?

Lee Atchison
The Jamstack Book

The Jamstack Book

Raymond K. Camden, Brian Rinaldi
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9780596519186Errata Page