Embedding Adobe Flash
Problem
I’ve made the most brilliant Adobe Flash piece ever created, and now I want to stick it in my FBML.
Solution
Use the fb:swf tag to embed Flash. The simplest form is:
<fb:swf swfsrc="http://www.youtube.com/v/12345"/>
Discussion
The FBML parser will automatically add a few Flash variables to
your embed that you can then use in your Flash movie (these are
similar to the parameters added by the fb:iframe tag—see Embedding an iFrame), shown in Table 6-6.
Table 6-6. Flashvars added by the FBML parser
Name | Type | Description |
|---|---|---|
| string | This parameter is always set to “never” by Facebook, so that your embedded Flash movies can’t access any page-level scripts. |
| int | If this Flash is being
loaded in a Profile, this is the |
| int | A timestamp of when this signature information was generated. |
| int | The |
| string | The current Facebook session key. |
| int | The session expiration time. |
| string | Your application’s API key, which the Flash movie will need if it’s going to make any API requests. |
| bool | Indicates whether the current user has added your application. |
| string | An MD5 hash of all the
parameters with names that start with |
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