dsce23640 2012-07-10 15:55
浏览 41
已采纳

Feed对话框直接URL在IE中不起作用

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.

Error in IE

  • 写回答

1条回答 默认 最新

  • douhuo1738 2012-07-13 09:44
    关注

    I have solved this by using the Fb.UI Javascript method.

    Read more here: https://developers.facebook.com/docs/reference/dialogs/feed/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)