I have third party cookies enabled so that's not the problem. I'm using google Chrome, facebook javascript SDk version 2.5, everything is working the first time when I login, but when I log out and try to log back in, it's returning status: 'unknown'
Use the following code after logout to resolve the issue:
document.cookie.split(";").forEach(function(c) {
document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";domain=.example.com;path=/");
});
Replace example.com with your domain name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With