English 中文(简体)
Facebook Tab Redirect / Link
原标题:
<?php
    // what shall I do???
?>

My big facebook question is, I need to create a tab, similar to the my app tab s with a custom icon etc - which simply redirects to a website outside of facebook, but inside the same window as facebook.

I understand the implications of php redirecting from inside my app canvas, meaning if I try and navigate back one step, it will automatically redirect forward again. To be honsest, that s not really an issue, but I know it s bad practice.

I know how to create custom facebook page apps using the iframe canvas based facebook system, but i m struggling to figure out what PHP I need to add to my file to redirect as soon as my page is landed on.

I know an empty page will flash before redirecting to an external site, but I don t mind.

Or if there is more forward thinking instant way of achieving this, then great!

Any tutorial pointers or straight code would be hugely helpful as I can t seem to dig anything out of google.

Thanks in advance!

最佳回答

Are you looking for something like this ?

<?php   
  header("Location:http://www.google.com");

?>
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签