I need to specify a url that i will use after the user has logged out from facebook because i need to do some extra-cleaning and he is correctly logged out from our app.
For this i need a url that when invoked will call a function i define, but i don't know how i should do this, what action i should use. In Drupal i could define a "callback menu" which is exactly what i'm looking for, i don't know how to do this in wordpress.
EDIT - to clarify more, the user is connected to my plugin with facebook connect. The standard
$logout_url = $facebook->getLogoutUrl();
isn't enough because when the user comes back from facebook i have to clear the session and invalidate the token and so i nee do specify a url
$logout_url = $facebook->getLogoutUrl('edit.php?post_type=my_custom&page=logout-from-fb');
i just need that when the user comes back from facebook automatically and the page
edit.php?post_type=my_custom&page=logout-from-fb a function i want is called and it will handle everything.