0

I'm doing a ASP.NET WebForms App with FB login. I'm using the latest Facebook C# SDK, and based on theirs example to login. I've using sandbox mode, and the web app is with fixed port.

In IE 9, when I click in the button, I've the facebook response: "An error occurred with YourApp. Please try again later.", but if I use Chrome or Firefox everything goes right (I can login, and have a response to my web app).

I've search where trying to find a solution, but nothing fits... :(

Any idea?

Thanks in advance

joaoasrosa
  • 301
  • 1
  • 17

5 Answers5

2

If your URL contains the port number like "http://domain.com:7071/TestApp", It does not work in IE. Try to host your application with no port and check. It will work properly.

1

I would take a look at this:

Cookie blocked/not saved in IFRAME in Internet Explorer

I have had to set the P3P headers before now to get around the problem you are facing.

Community
  • 1
  • 1
Richard
  • 21,728
  • 13
  • 62
  • 101
  • If I generate the P3P policy, when I deploy the web app, I to add the same policy, right? I'm new at this stuf... – joaoasrosa Jan 10 '12 at 11:57
  • You need to make sure that your headers in each page response contains something like this: HttpContext.Response.AddHeader("P3P:CP", "IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"); – Richard Jan 10 '12 at 13:03
1

Try sending this as a HTTP Header:

P3P: CP="NOI ADM DEV COM NAV OUR STP"
bardiir
  • 14,556
  • 9
  • 41
  • 66
  • I try to add the `HttpContext.Current.Response.AddHeader ("p3p", "CP=\"NOI ADM DEV COM NAV OUR STP\"");` in my login page, and the problem maintains... :( – joaoasrosa Jan 10 '12 at 11:56
0

disable sandbox mode in your app setting. If you enable it then the app is only visible for admin so disable...

nitesh
  • 1
0

I know this is an old post, but I had similar issue.

Either comment out your channel Url or do like this guy FB.login() causes Error 191 in any IE (Internet Exploder)

IE does not understand the channelURL and puts it in your login url.

Community
  • 1
  • 1
Bolli
  • 4,974
  • 6
  • 31
  • 47
  • With localhost:port in IE doesn't work, but if you use another borwser works. When you move to production all will work! :) – joaoasrosa Mar 30 '12 at 12:58