It can be a little tricky. Basically, Facebook stores a bunch of cookies in a user browser, which are referred to by your application identifier (i.e. 12345_fb_sig=, etc.). These cookies are used to inform your FB Connect application that the user is logged in to Facebook and to transmit the facebook session ID. But if the user goes to another place and logs out, these cookies are not cleared, and as far as your site is connected, the user is still registered. If the user returns later and you try to call the API using this session key, it does not work.
cookie PHP FB API, $facebook->api_client->clear_cookie_state(), . - API , , - .
, - FB Javascript, FB Connect. FB.init(), FB Connect, , :
FB.init("<YOUR-API-KEY>", "<YOUR-CROSS-DOMAIN-CHANNEL-URL>", {"reloadIfSessionStateChanged":true});
, , , , . .