O'Reilly logo

FBML Essentials by Jesse Stay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<fb:swf/>

Synopsis

<fb:swf swfsrc="..."/>

Renders a standard SWF (Shockwave Flash) object. On profile pages, an image must be specified, and it will be displayed until the user clicks on it. On canvas pages, the SWF file works as normal.

FBML-Specific Attributes

Required

swfsrc=[string] default: none

The URL of the Flash object. Must be an absolute URL.

Optional

imgsrc=[string] default: http://static.ak.facebook.com/images/spacer.gif

The URL of an image to display when the page loads. This is useful in particular for the profile page, as an image must be displayed until the user clicks on it. This must be either a .gif or .jpg image.

height=[int] default: none

The height of the image and the Flash object.

width=[int] default: none

The width of the image and the Flash object.

imgstyle=[string] default: none

The style attribute of the <img/> tag.

imgclass=[string] default: none

The class attribute of the <img/> tag.

flashvars=[string] default: none

URL-encoded Flash variables. Also sends the fb_ values mentioned earlier in the section Forms in FBML” in Chapter 2.

swfbgcolor=[string] default: none

The background color of the Flash object.

waitforclick=[true|false] default: true

If false, the Flash object autoplays. This works only on canvas pages.

salign=[string] default: none

The salign attribute in the <embed/> tag.

loop=[true|false] default: false

If true, loops the Flash object over and over.

quality=[high|medium|low] default: none

The quality of the Flash object.

scale=[string] default: none

The scaling ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required