Facebook Page TAB mobile redirection problem

Yes… we have ongoing problem with that really simple function. So – what’s happening. Let’s assume that we have really simple Page Tab existing inside out Facebook Page. URL usually looks like that:  http://www.facebook.com/spidersoftau/app_334933569956732  – works perfectly on Desktop browser, but if you would like to open this on mobile, you will get nasty error

“The page you requested was not found.”

If there is any workaround? Yes it is! Couple of them. One of them is to use vanity URL’s for sharing, which is kind of workaround. But, second one is also tricky. Instead of using URL showed above you can use something a little bit different: http://www.facebook.com/spidersoftau?sk=app\_334933569956732&ref=ts  which is basically running Desktop version of you Page TAB, but in the mobile. So – what next?

You can actually leave the frame using a piece of JavaScript inside section of your HTML page:

<script>
  isInIFrame = (window.location != window.parent.location) ? true : false;
    if (isInIFrame)
      {
        window.top.location = 'http://spidersoft.com.au/facebook';
      }
</script>

Where http://spidersoft.com.au/facebook it’s a mobile friendly version of your tab.