Facebook OAuth2 Logout Does Not Delete Fb_ Cookie

This worked, so I'm not sure what went wrong. The user can log in to Facebook just fine. Logout problem.

I register the user by redirecting them to the exit to Facebook php script. $facebook->getLogoutUrl();

When a user clicks on this link, they exit the Facebook page. However, when they return to my site, I notice that the fb_ cookie still exists. The PHP SDK still returns fb user session details. The strange thing going to www.facebook.com shows that I have already logged out of Facebook.

What could be wrong here? Thanks, I'm at a standstill: (.

+2
facebook oauth logout
source share
1 answer

Ok, in the end I created getLogoutUrl() with the URL next= for my output script, which will delete the facebook cookie setSession(null) .

+2
source share

All Articles