开发者

Redirection problem--from Facebook application to Facebook tab

开发者 https://www.devze.com 2023-01-10 19:36 出处:网络
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.

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

精彩评论

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