How to logout using the OAUTh and graph api

May 30, 2010 at 11:00 AM
Hi, I just made a website where i'm authorizing the users using the oauth2.0 and graph api. I also want to user logout from my website and facebook site,when they click on the logout button. I'm unable to find a solution for this last 24 hours. Thanks in Advacnce
Jun 1, 2010 at 8:15 AM
Edited Jun 6, 2010 at 8:46 AM

This question was discussed in detail on facebook developer forums. Only two solutions was brought up: use javascript sdk function logout() or use redirect to www.facebook.com/logout.php?app_key=KEY&session_key=SESSION&next=REDIRECT_URL. Javascript SDK internally uses redirect to logout.php, so I would say for now it is the way to go.