This PHP header function is working in all browsers except IE. It is loading the Facebook feed dialog into a canvas page within Facebook (iframe).
In IE:
The header is loading in Facebook, but not the actual feed dialog, just a blue box stating 'an error has occurred' without specific details of that error.
All other browsers the header works as expected, and loads the page within the canvas frame.
The script inserts the results of a form into the MySQL database, and if this is successful, the header then redirects the user to the feed dialog.
Therefor I am concerned that the problem is either with IE processing the variable $feeddialogurl
, or whether there are some security restrictions with IE that are preventing it from loading.
*Update - after more testing the header is working as expected, the URL works when pasted directly into IE.
Do you have any more suggestions please?
$feeddialogurl = "https://www.facebook.com/dialog/feed?
app_id=254705324634259&".$applink."&
picture=".$apppicture."&
name=".$appname."&
caption=".$appcaption."&
description=".$appdescription."&
redirect_uri=".$redirecturi;
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
else
{
header("Location: $feeddialogurl");
exit;
}
mysql_close($con);
ob_end_flush();
Please see the error message in IE below. The feed dialog is loaded into the app frame (hence duplication of the Facebook top menu bar) This works in all other browsers bar IE.