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. Or if you want to get really fancy, maybe use the Facebook page tabs, and make it not display the normal menu links/tabs within the design. Below are instructions for how to do just that!
<tic c n>Note: These steps are optional: If you want to show your website as a "Facebook App" within Facebook, follow these instructions. If you simply want to allow "login with Facebook" to work, and have no desire to display your website as a Facebook App, you do not need to follow these instructions.</tip>
Notes:
<
Instructions:
<div id="header">
<
<div id="header" class="no_facebook">
<
<
<div class="center">...</div>
You would add a space then no_facebook to the existing classes, like this:
<div class="center no_facebook">...</div>
<
</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>
<
<