Redirection problem--from Facebook application to Facebook tab
I want to redirect from my Facebook app-canvas page to Facebook tab
I'm using PHP
when I redirect with header('location':$taburl)
tag it remain at the same canvas page.
Please give me answer o开发者_运维问答f this problem as soon as possible
Correct PHP redirect should look like this:
header('location:'.$taburl);
Now if you are using iframe app it would only redirect your iframe. For full page redirect you would need to use javascript.
If you are in a FBML canvas, you could simply do this:
<?php
echo '<fb:redirect url="' . $taburl . '" />';
?>
精彩评论