[Solved] How to redirect to my website from facebook app?


Basically, when a user clicks on one of the invites, they are sent to your application’s canvas URL. The one you set in your application’s settings.

The user will be sent to your application and from there you can redirect them to your actual site using a JavaScript redirect as they do in the tutorial you linked to:

The following code is for breaking Iframe, include this code into your webpage.

<script type="text/javascript">
if (top.location!= self.location)
{
top.location = self.location
}
</script>

When they say “breaking Iframe” they mean to take the content out of the Iframe and into it’s actual URL (silly wording… I agree). Note the use of top.location. This will change the location of the top most frame – in this case, it is apps.facebook.com.

6

solved How to redirect to my website from facebook app?