views:

66

answers:

2

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 of this problem as soon as possible

+1  A: 

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.

serg
+1 good catch :)
Sarfraz
A: 

If you are in a FBML canvas, you could simply do this:

<?php
  echo '<fb:redirect url="' . $taburl . '" />';
?>
agbb