开发者

Cookie not accepted on IE when authenticating with Graph API (oauth) - iframe app

I started playing with the new graph api with the python sdk. I'm trying to use the python-sdk in an iframe app to make the authentication (I successfully did it with JS - althoug开发者_Python百科h the popup is blocked on IE and chrome by default). I'm following this example:

http://github.com/facebook/python-sdk/blob/master/examples/oauth/facebookoauth.py

It works on chrome and firefox, but in safari and IE it only works if I set the cookie permissions in the browser to the lowest possible (which is impractical for average users)

Any ideas ? Ze


response.headers['P3P'] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'


IE

Make sure the P3P header is set on all responses served through the iframe

Safari

Don't know. Some indicate that there is no better way than what you've already figured out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜