JavaScript

Hide Flash Element

Updated: Dec 10, 2015
Copy for LLM
The method FB.Canvas.hideFlashElement() hides the HTML element passed in via the elem param from view.
Developers should use this function within their hideFlashCallback() function to hide the element as soon as possible. Since Facebook will call this function 200ms later, and the implementation may change, using it is the only way to guarantee forward compatibility.

Example

var element = document.getElementById('myGreatFlashObjectElement');
FB.Canvas.hideFlashElement(element);

Parameters

NameTypeRequiredDescription
elem
Object
no
HTML Element to be hidden, generally a Flash Object element.