1

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

bakkal
  • 54,350
  • 12
  • 131
  • 107
kinnari
  • 11
  • 1

2 Answers2

2

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
  • 109,619
  • 77
  • 317
  • 330
  • yes that was the problem. When you redirect using normal header location it loads it in iframe and facebook detects that and show only the logo, clicking on the logo redirects to the tab. – happyhardik Feb 26 '11 at 08:19
0

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

<?php
  echo '<fb:redirect url="' . $taburl . '" />';
?>
whallz
  • 2,365
  • 2
  • 22
  • 24