This is an old revision of the document!
One of the things you can do with a Facebook App, is make your website display inside Facebook as a "Facebook App". The problem is, when you do this it still shows everything on the page just like it would show as if you were viewing the website directly. You may wish to hide the logo, or maybe hide the left or right column of certain pages. Below are instructions for how to do just that!
Notes:
<
Instructions:
<div id="header">
<
<div id="header" class="no_facebook">
<
<
</head>
<
<script type="text/javascript"> //<![CDATA[ /* * Facebook show/hide sections of the page, based on if it is in a frame * or not. (if in a frame, assume it is inside facebook app). Note that * we "start" by hiding all the sections for everyone, then if it detects * it is NOT in facebook, it "un-hides" those sections... Using this method * should prevent the "shows for a second" problem. */ if (top.location == location) { //This is "normal" page load, so show all the sections that should //only be hidden when in facebook. Event.observe(window, 'load', function () { $$('.no_facebook').each (function (elem) { elem.removeClassName('no_facebook'); }); }); } //]]> </script> <style type="text/css"> /* don't show sections in facebook */ .no_facebook { display: none; } </style> </head>
<
<