Name
<fb:iframe/>
Synopsis
<fb:iframe src="..."/>
An excellent tool when you need to render complex JavaScript, Flash, or unsupported FBML. This tag links to an external web address and renders the content from that URL inside an HTML <iframe/> tag on the canvas page. From the external URL, any HTML, JavaScript, or Flash may be used, but keep in mind that content will not be parsed by Facebook, and therefore FBML will not be supported for anything output by the <fb:iframe/> tags. <fb:iframe/> is not supported on user profile pages.
FBML-Specific Attributes
Required
src=[string] default: noneExternal URL (non-Facebook, e.g., your own servers) to render in the iframe. All Facebook variables mentioned in the Forms in FBML” section in Chapter 2 are appended to this URL, including
fb_sig_profile,fb_sig_user,fb_sig_session_key,fb_sig_time, andfb_sig, in addition to anfb_sig_in_iframeparameter to let the app know it is being called from an iframe.
Optional
smartsize=[true|false] default: falseIf
true, automatically fits the iframe to the remaining space on the page and disables the scrollbars.frameborder=[1|0] default: 1If
1, shows the iframe border. If 0, hides it.scrolling=[yes|no|auto] default: yesIf
yes, displays scrollbars. Ifno, doesn’t display scrollbars. Ifauto, scrollbars are displayed only if the enclosed content exceeds the size of the iframe.style=[string] default: noneSpecifies the style for the iframe.
width=[int] default: noneSpecifies the width of the iframe.
height=[int ...
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