modified index.php..Now works fine within fb canvas.