Search code examples
facebookfacebooker

Navigate from facebook tab to canvas page


My facebook application has a tab the user can install. On this tab, there is links that are suppose to link to application canvas (ex.: apps.facebook.com/my-app).

It seems that when I'm on my user profile tab and click on a link, Facebook loads the page inside the tab. How do I force it to navigate out of the tab and into the canvas page?


Solution

  • You need to use full urls instead of relative urls.

    For example:

    <a href="/apppage/content.php">Link</a> -> Renders on tab
    <a href="http://apps.facebook.com/yourapp/apppage/content.php">Link</a> -> Renders application page
    

    Good luck!