I need to retrieve a DOM element from my page.
Use the old standby
var someElement = document.getElementById('aDiv');
Document is one of the
format to the actual object in
fbml.js (see Dealing with Sandbox Renaming for more information), so
there’s no need to worry about it breaking in your code.
Make sure you haven’t named any of the elements in your page
with the same
ids. Not only is that part of the
HTML and XHTML specs, but it’s also
just good practice. If you don’t follow it,
get confused and not know which one to return. This is just as true
on Facebook as it is off.