...cebook and the connected website.
provides a public logout function to ensure a user gets logged out of…
… facebook and the connected website.
I signed the document listed here: https://developers.facebook.com/opensource/cla
There's already a login/logout function, take a look at example.php
@ThomasWunderlich that doesn't also clear the session data in PHP. If the user has granted offline_access (which I know is now deprecated), they aren't really ever logged out. Try it.
The correct way to log someone out fully is remove the session data from your own server, then direct the user to logout of facebook as well.
and remove the cookie too, no?
coding standards #2