Sometimes I want a dialog, but I don’t really want it to pop up over everything else. Can I attach it to something on my Canvas page?
fb:dialog FBML tag won’t
give you the power you want, but you can definitely do this with FBJS.
See Displaying Contextual Dialogs.