开发者

Redirect User to my Website on a Facebook Canvas Page

I have a small problem. I want to redirect a user to my website when he visits my facebook canvas page. As in friend.ly. They redirect user to their website rather than displaying the content in the Canvas 开发者_开发技巧page. The problem is that when i am using the PHP header function, it is showing the website in the iframe. I would like to redirect the entire page in mine.


You have to use javascript to reach outside the iframe (commonly referred to as frame busting.)

<script>
window.top.location = 'http://www.yoursite.com/';
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜