i am using iframe to render my app from my server. the problem is once i click on a link in my app, i am being redirected to my server. i mean, i remain in tha canvas page for a second, then suddenly instead of viewing it in an iframe on the facebook website, i am redirected the app URL on my server. I am using PHP and MySQL.
why is this happening.
the firebug info: this is the POST info that firebug is giving. due to the above problem it is also not POSTing to the DB.
<html>
<body>
<script type="text/javascript">
top.location.href = "http://www.facebook.com/login.php?v=1.0&api_key="xxxxx"&next=http%3A%2F%2F<my-web-server.com>%2F<appfolder>%2Fuser_submit.php";
</script>
EDIT
apparently, it is running fine in Chrome for Mac.
EDIT 2
what i just found out by [Stopping] the browser on the facebook page through Firebug: only this part of the app is being loaded on the Facebook page. the rest of the app gets loaded after it redirects it to my server.
<body>
<div id="wrap-iframe">
<script type="text/javascript">
top.location.href = "http://www.facebook.com/login.php?v=1.0&api_key="xxxxx"&next=http%3A%2F%2Fmy-domain-server.com%2Fapplocation%2Fuser.php";
</script></div></body>
EDIT 3
I did some tinkering and apparently, it has angered it even further. now even the first page redirects me. If only I remembered what I did...:-(
Warning: Cannot modify header information - headers already sent by (output started at /home/amitver/public_html/roadies/user.php:7) in /home/amitver/public_html/roadies/facebook.php on line 257
Warning: Cannot modify header information - headers already sent by (output started at /home/amitver/public_html/roadies/user.php:7) in /home/amitver/public_html/roadies/facebook.php on line 257
Warning: Cannot modify header information - headers already sent by (output started at /home/amitver/public_html/roadies/user.php:7) in /home/amitver/public_html/roadies/facebook.php on line 257
Warning: Cannot modify header information - headers already sent by (output started at /home/amitver/public_html/roadies/user.php:7) in /home/amitver/public_html/roadies/facebook.php on line 261