Hi all,

I post this in dispair!  I've been building my application to work in FF, and it does so beautifully.  I've been checking design/css in IE, which is also perfect.  However, using the application in IE causes problems when a user submits a form (using method="post")...  In IE, after the form is submitted, the iframe loads on it's own page (away from facebook) and the posted data is lost.

This is only in IE.

Before the iframe loads on it's own page, it seems a page on facebook is in the middle of all this:
http://www.facebook.com/login.php?v=1.0 … 3Feid%3D19

After the above page loads, this is when my app is loaded on it's own page with no form data. 

I stress again, in FF the app works as normal!

I'm going nuts trying to work it out - I can't believe I am the only person developing an app using an iframe which has a form in it, but I can't find anyone else experiencing this issue.

Thanks a lot

Mat

 

+++++++++++++++++++++++++++++++++++++++++++++

 

+++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++

 

 

you need add to frame in php


  header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');


also you need use session and store

            $_SESSION["fb_user_id"] = $facebook->fb_params['user'];
            $_SESSION["fb_session_key"] = $facebook->fb_params['session_key'];           

after store you can use

        $facebook->set_user($_SESSION["fb_user_id"], $$_SESSION["fb_session_key"]);         
        $fb_user_id = $facebook->get_loggedin_user();                     

and test


My Apps (Also we sell source):
Koi Pond:               http://apps.facebook.com/koipond/
Moon phases:         http://apps.facebook.com/moonphases/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

摘自:http://forum.developers.facebook.net/viewtopic.php?id=22929

 

 

 

 

 

 

 

posted on 2011-07-04 16:06  小炒花生米  阅读(1060)  评论(0编辑  收藏  举报