2009-03-31

Comparing iFrame and FBML Flash Facebook applications

The following table
summarizes the differences when creating your Flash Platform application as an
iFrame or FBML Facebook application. The two most significant differences are
the ability to control the embedding of a Flash object and the ability to
access scripts.















































Feature

iFrame

FBML

Flash Player version and detection code

You control the embedding. You write (or include) the
JavaScript detection code and the selection of the required Flash Player
version. Typically, SWFObject is used.

You have no control over the embedding. Currently, the <FB:swf> tag requires Flash Player version 9.0.115 and there is no way to specify any
other version.

Script access

Can be denied by setting allow_script_access=never.

This means no full screen, no JavaScript, etc.

Use fb:fbjs-bridge for limited JavaScript access on FBML pages.

Fullscreen mode

Supported.

Not supported.

Simple integration of FBML tags

Supported through use of XFBML.

Supported. This allows you to simply integrate
Facebook components and dialog boxes. You can also embed Flash objects in the fb:iframe tag.

Application server

Not required. Your SWF container page could just be an
HTML page that uses JavaScript to parse and pass the GET URL session
variables passed with the page request to the SWF by setting the flashvars property of the SWFObject.

Not required. Your SWF can be a static HTML or FBML
page.

Making Facebook API calls from Flash

Supported.

Supported.

Controlling URL history

Supported through iFrame URL.

Supported by browser.


References



Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License




About the author



This content was authored by Facebook.


精选文章

【转】春分时节,用一锅冬去春来饭碰撞南北食趣 - 少数派 #美食

春分时节,用一锅冬去春来饭碰撞南北食趣 - 少数派 sspai.com /post/97389 三月正是冬与春接力之时,北方的白萝卜和大白菜悄悄退场,南方的春笋已然冒头,在这万物复苏的好时节,不妨用一道道「冬去春来饭」来感受舌尖上的季节流转。这一次,我们邀请了 4 位少数派作者,...