I am developing an application which on login page also supports facebook login with
<fb:login-button>.
I have set up two Apps on facebook:
- one for localhost (Web site url http://localhost/, no App Domain)
- one for testing server (Web site url http://dev.domain.com/, no App
Domain)
When I am developing on my own computer click on login button operates as expected and I am logged into my application.
When I put my application to the server (change appid and secret to use 2nd App) and click login button the facebook login dialog opens and when I enter email and password it closes but my applciation does not log me in.
Whats more if I check on server I see that process which is handling this web request is constantly increasing memory size (3MB per second) and its taking 50% or more CPU time. If this process is not stopped soon the server becomes unresponsive becouse memory used by it is maximum possible and CPU time is 100%.
This happens as soon as facebook login dialog closes.
In my application I am using library facebook C# SDK from codeplex.
If anyone has any information on what I might be doing wrong O would greatly appreciate the answer.
Found the problem…it was not about facebook but .Net Framework. It appears that some versions of framework support parameter passing from dynamic objects and others don’t.
So when i changed code from
to
it started to work…dont really understand why sometimes even on the server it would work (after remote debugging it always worked until dll’s were replaced but …dont really care 🙂 )
Thanks for all replies.