Jump to content

Facebook application problem


mforan

Recommended Posts

My game on facebook is being displayed in the facebook application iframe. When users register in firefox or google chrome everything is fine and to a certain extent in IE as well.

 

However, when logging into the game, through the browsers the game loads fine except when loaded in IE....

Basically i am using a session to state that the game is currently in facebook mode:

<?php
session_start();
$_SESSION['isface'] = 1;
include("game.php");
?>

 

All is good until it hits this code:

<html>
<frameset cols="130" noresize border=0>
<frame src="nav.php" name="nav">
<frame src="hq.php" name="main">
</frameset>
</html>

 

The frames then output error message:

<?php
if ($isface !="1") {

if (sha1($info[4]) != $pass) {
	mysql_close();
	echo $isface;
	die("<br><br><center><body bgcolor='#000000'><b><font color='#FFFFFF' face='Verdana' size='2pt'>{$isface} Your username cannot be found or password doesnt match</font></b></center></body></html>");
}
}
?>

essentially the game is using cookies for authentication on the main site, but since this is facebook this is not needed so it SHOULD skip this check and proceed with using the facebook details as the login.

 

this is only happening in IE... i dont get it. any ideas?

Link to comment
https://forums.phpfreaks.com/topic/220514-facebook-application-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.