开发者

Redirect User to my Website on a Facebook Canvas Page

开发者 https://www.devze.com 2023-03-06 06:33 出处:网络
I have a small problem. I want to redirect a user to my website when he visits my 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

精彩评论

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