Reputation: 1170
What is the easiest way to have your facebook application redirect to a website. Currently the app loads on a canvas (iframe), I desire it to simply redirect to an external website.
An example of the functionality I am looking for is http://apps.facebook.com/the-real-hotlist/?ref=ts
or just search for the 'hotlist' facebook application... any ideas on how this is done? I have played with post-redirect url and such, no luck. Any help is appreciated,
Thanks!
Upvotes: 1
Views: 3557
Reputation: 38125
Just use something like:
<script>top.location.href="http://google.com"</script>
UPDATE:
Please note that your app should not only be a redirection to an external website as per the platform policy:
The primary purpose of your Canvas or Page Tab app on Facebook must not be to simply redirect users out of the Facebook experience and onto an external site.
Upvotes: 6
Reputation: 2553
Creating a Facebook app solely for the purpose of redirecting to your site is against Facebook policies.
Upvotes: 1