开发者

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 . '" />';
?>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜