Facebook fan page with contact form, dialogs, navigation & AJAX with static FBML
webdigi.co.uk
webdigi.co.uk
@poundy, A mouseover will not work to run JS, I have tried.
I have been playing around with FBML,FBJS for the past few weeks...Say you wanted to load a external page(or for your case your recent image galleries) in a iframe, you will have to do something like this...
<a onClick="iframe_wrapper.setInnerFBML(the_iframe);" style="cursor: pointer;"> Click here to view your image gallery</a>
<div id="iframe_wrapper"> <fb:iframe width="560" height="560" src="hxxp://mywebsite.com></div>
<fb:js-string var="the_iframe"><fb:iframe width="560" height="560" src="hxxp://mywebsite.com></fb:js-string>
<script type="text/javascript" charset="utf-8"> var iframe_wrapper = document.getElementById('iframe_wrapper'); </script> -->
Really not a big deal for the users to have to click, but after reading thru there wiki I think using an iframe on a static fbml tab is frowned upon (I may be wrong?)..But anyway,I managed to do some pretty cool stuff with FBML+FBJS that I haven't seen done yet...If anyone wants to chat about this topic,leave your aim/skype/gtalk..=]
Does this mean you simply can't have dynamic content in one of those tabs (without adding an extra click/link)?
I'd like to connect one of our apps to Facebook in such a way that customer could show their most recent image galleries on their FB fan page.
How would this be accomplished?
so, while you still wouldn't be able to use JS on the tab load, because it was just requested from your server, it could show the last few images on their account.