FB Ask - Español
How do I exit a FB app in PHP? - Stack Overflow
You need to redirect the entire page (outer Facebook frame and all) by outputting a script:
Lee mas