Fb:iframe

From Facebook Developers Wiki

Jump to: navigation, search

[edit] Description

Inserts an <iframe> tag into the page.


[edit] Attributes

RequiredNameTypeDescription
required src string The URL of the iframe. Signed GET parameters are appended to the URL to prove that the frame was loaded through Facebook, as described in the forms section. These parameters also include one named fb_sig_in_iframe to indicate this context.
optional smartsize bool This parameter smartly sizes the iframe to fit the remaining space on the page and disables the outer scrollbars. If you include more than one smartsizing iframe, they automatically distribute the size appropriately. (default value is false)
frameborder int Indicates whether to show (1) or hide (0) an iframe border. (default value is 1)
scrolling string Indicates whether to show scrollbars. (default value is yes) - use "yes", "no", or "auto" (not "true" or "false")
style string Indicates a custom inline style for the iframe.
width int Indicates the width of the iframe.
height int Indicates the height of the iframe.
resizable bool Gives the ability to set the iframe's size using the JavaScript API. See Resizable_IFrame for details. You must specify a name for this iframe. This option cannot be used when smartsize is enabled.
name string The name of the iframe. You must name the iframe when resizable is enabled.


[edit] Notes

  • You cannot use the <fb:iframe> tag on the profile page.
  • You must use your server's URL as the src for your iframe. Otherwise, apps.facebook.com wraps your page with the Facebook layout.
  • You cannot use FBML inside an iframe.