Facebook iframe app and cookies [Internet Explorer]

I downloaded the IBM P3P editor, created the files, and uploaded them to my server. And cookies are still not recognized in Internet Explorer. I checked the P3P validation tool and it seems to confirm.

The application can be viewed here: apps.facebook.com/naplesnews , and iframe points to www.naplesnews.com/facebook/app/ .

Again, www.naplesnews.com/facebook/app/ does not seem to have any problems.

Any idea what I'm missing here?

+7
internet-explorer cookies facebook iframe p3p
source share
2 answers

Sorry to have to give up. I'm not sure what your exact problem is, but as a rule, all you need for IE to accept cookies with multiple browsers is the P3P policy header. I am not sure about the IBM tool. All I do for my PHP applications is the following bit of code until any page exits:

//required for IE in iframe FB environments if sessions are to work. header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); 

So far I have not had any problems with this in IE6, 7 or 8. Are you sure your security levels are not set too high? This should work at default levels.

There are some problems that I had with session cookie verification and Facebook client libraries, but these are different problems related to the actual contents of the cookies, and cookies cannot be set.

+29
source share

Just add / improve above for those who read PHP as OMG!;) ... here is the META tag that you put in your place for IE to work. I used the meta tag to eliminate one more thing for PHP :)

<meta http-equiv="P3P" content='CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"' />

Hope this helps someone else ... in my case, I used it in a facebook game application where everyone except IE'rs could view;), but that fixed it ...

+6
source share

All Articles