Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 21, 2011 01:04 AM by lapinbond
Oct 21, 2011 01:04 AM|LINK
I'm currently testing an OAuth implementation of facebook connect using http://facebooksdk.codeplex.com.
I've got a FacebookController with 2 simple actions called LogOn and CallBack.
Everything works fine and the user is logged correctly into my system.
The problem is when the CallBack action is called, something strange happens that makes a simple
redirecting to the correct logged url but ending with the following characters: #_=_
It appears that the Facebook server sends the information to my webserver using the following HTTP header:
HTTP/1.1 302 FoundCache-Control: private, no-cache, no-store, must-revalidateExpires: Sat, 01 Jan 2000 00:00:00 GMTLocation: http://mywebsite.com/Facebook/CallBack/?state=1&code=AQCXexr10uxANSBOu9JqrBDxqPkWbsyxM1S9ltuY9XwCXW7eGsOII329SthClx OSM_a7wJvwrXh1_O3D5I7E_nxCDTWDLpyYdMpMUfw4zMWcQ4oV2PmRkIMd2NfPYRKlkLgkurEzka1CjAF1jp8Xb3crklOB59W4IT7LZy6MEmF usuhSKacmsTcV1LAOW4uJ3K4#_=_P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"Pragma: no-cacheSet-Cookie: locale=en_US; expires=Fri, 28-Oct-2011 00:09:38 GMT; path=/; domain=.facebook.comContent-Type: text/html; charset=utf-8X-FB-Server: 10.43.103.61X-Cnection: closeDate: Fri, 21 Oct 2011 00:09:38 GMTContent-Length: 0
As you can see we can find the #_=_ characters at the end of the
It's like the Redirect was taking into account the #_=_ characters by adding them automatically to the loggedUrl.
Any idea would be really appreciated.
Thanks in advance for any answer.