kinnari
kinnari

Reputation: 11

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

Upvotes: 1

Views: 814

Answers (2)

whallz
whallz

Reputation: 2613

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

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

Upvotes: 0

serg
serg

Reputation: 111265

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.

Upvotes: 2

Related Questions