| FBML has been deprecated. Starting June 1, 2012 FBML apps will no longer work as all FBML endpoints will be removed. If you are building a new application on Facebook.com, please implement your application using HTML, JavaScript and CSS. You can use our JavaScript SDK and Social Plugins to embedded many of the same social features available in FBML. |
Renders a Shockwave Flash (SWF) object. On profile pages, an image appears first. When the user clicks the image, it turns into the Flash object. On canvas pages, the image is ignored, and the Flash object is directly included.
You can also make API calls to Facebook directly from Flash. Check out the official ActionScript 3.0 Library for Facebook Platform for more details.
| Name | Type | Description |
|---|---|---|
| swfsrc | string | The URL of the Flash object. The URL must be absolute. |
| imgsrc | string | The URL of the image (.gif and .jpg formats only). Default value is |
| height | int | The height of the image and the Flash object. |
| width | int | The width of the image and the Flash object. |
| imgstyle | string | The |
| imgclass | string | The |
| flashvars | string | The URL-encoded Flash variables. Also passes the |
| swfbgcolor | string | The hex-encoded background color for the Flash object. By default, a Flash object's background defaults to transparent, so if you want a background color, specify one for this attribute. |
| waitforclick | bool | Indicates whether to autoplay the Flash object ( |
| salign | string | The |
| loop | bool | Indicates whether to play the Flash object continuously. Specify |
| quality | string | Indicates the quality of the object. Specify |
| scale | string | The scaling to apply to the object. Specify |
| align | string | Indicates how the browser aligns the obect. Specify |
| wmode | string | Indicates the opacity setting for the object. Specify |
<fb:swf swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;" swfsrc='http://www.youtube.com/v/xxxxxxxxxx' imgsrc='http://img.youtube.com/vi/xxxxxxxxxx/2.jpg' width='340' height='270' />