How to Embed Flash on a Facebook Page

This guide explains how to embed SWF files and Flash FLV videos on a Facebook Fan Page, including alternative solutions since Facebook no longer supports direct SWF uploads.

How to Embed an SWF File on a Facebook Fan Page

Important Note: Facebook does not natively support SWF files. You cannot upload them directly like MP4, FLV, or other video formats. However, you can embed SWF files hosted externally using a workaround with Static HTML apps.

Steps to Embed SWF on a Facebook Fan Page

  1. Add a Static HTML App to Your Facebook Page
    • Facebook no longer supports FBML, so use an iFrame-based app like Static HTML: iframe tabs (available in the Facebook App Store).
    • After adding the app, switch to “Use Facebook as Page” and navigate to the app settings.
  2. Host the SWF File Externally
    • Upload your SWF file to a web hosting server (e.g., your own website or a free hosting service).
    • Ensure your hosting supports SWF files (most do).
  3. Embed the SWF Using HTML/iFrame Code
    • In the Static HTML app editor, paste the following code:html<iframe src="https://www.yourwebsite.com/path/to/yourfile.swf" width="400" height="300" frameborder="0"> </iframe>
    • Replace the URL with your SWF file’s location.
    • Alternatively, use Facebook’s deprecated <fb:swf> tag (not recommended for new projects):html<fb:swf swfsrc="https://www.yourwebsite.com/path/to/yourfile.swf" imgsrc="https://www.yourwebsite.com/path/to/preview-image.jpg" width="400" height="300" />
      • The imgsrc attribute displays a static image before users click to activate the SWF.
  4. Save and Test
    • Click “Save Changes” and visit your Facebook Page to ensure the SWF embeds correctly.
    • Users must click the SWF to activate it due to Facebook’s security restrictions.

Alternative: Convert your SWF to a supported video format (e.g., MP4) and upload it directly to Facebook.

How to Embed a Flash FLV Video on a Facebook Fan Page

FLV files are also unsupported directly, but you can upload them to a video-hosting platform and share the link on Facebook.

Steps to Embed an FLV Video

  1. Upload the FLV Video
    • Use a free platform like YouTube, Vimeo, or Dailymotion, or host it on your own server.
  2. Share the Video Link on Facebook
    • Go to your Facebook Page.
    • Click “Link” at the top of the post composer.
    • Paste the video URL (e.g., https://www.youtube.com/watch?v=XYZ123).
    • Add a description and click “Share.” Facebook will automatically embed the video.

FBML vs. iFrames: What’s the Difference?

  • FBML (Deprecated)
    • Facebook Markup Language (FBML) was a custom tag system for creating tabs.
    • Discontinued in 2011; replaced by iFrames.
  • iFrames
    • Allow embedding external web pages or apps inside Facebook.
    • More flexible and secure; used by modern apps like Static HTML: iframe tabs.

Final Notes

  • Facebook’s support for Flash formats is limited. For best results, convert SWF/FLV files to MP4 or use external hosting.
  • For SWF embeds, ensure your hosting is reliable to avoid broken links.
  • Refer to Facebook’s developer docs for updates on embedding options.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top