Categories
HTML/CSS Programming

Facebook SDK: IE redirect loop

Recently we had problem with Facebook SDK, that on IE it remain in redirect loop and hence our facebook application was not working. I test it to find that it wasn’t getting the session detail on form submission. The reason is Security policy of IE that prevent 3rd Party Cookie drop which is required for SDK to work.

Finally got it working by throwing following header:

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

For now I just copy paste it from some site, but be careful all those words has different meaning and you may not want to throw all those words. Hope that help.

This same applies not just to facebook SDK, but anyone using a iframe application with cookie support.

By Sumit Gupta

Sumit Gupta, born on 7th Feb 1981 in NCR, India. He lives a quiet life until he turn to a developer. Once he is in his professional life people start recognizing him for his work. Sumit Gupta is always keen to learn more and share his knowledge to anyone who deserve it. His goal of life is to code at least one 3D action game by itself or with his company Vikasumit [http://www.vikasumit.com].