I had a problem when the JavaScript SDK on Facebook does not set cookies on some machines, so my backend authentication does not work when I try to verify the cookie using the secret value of my application.
I have a demo application ; important files are:
The client uses the Facebook JavaScript API to log in to the system and retrieve information, and then posts it on my server. The server sends back fbs_APPID , which the client then displays. On some Windows machines (in all browsers), the server does not receive the expected cookie. What makes Facebook set a cookie and how can I fix it?
The demo application is in Sinatra, but our production application, in which we found an error, is Rails, if that matters.
javascript cookies facebook
jcoglan
source share