0

i have created my facebook application,i use $this->facebook->getLogoutUrl(); to logout a user,but it will causes facebook.com logout too..

so any idea to prevent this?

rails_noob
  • 311
  • 2
  • 5
  • 14
  • Wont that be against facebook.com policies ? https://developers.facebook.com/docs/facebook-login/login-flow-for-web/#logout – Rajat Gupta Nov 13 '13 at 20:37

2 Answers2

0

Actually there is a problem in new version of PHP Sdk, and

 $facebook->getLogoutUrl(); 

not working,

you can try it to set other file logout.php in that you have to start session and then destroy it..

logout.php

 session_start();
 session_destroy();

it's working, i use it.

0

Maybe try to search and read similar threads?

Facebook Oauth Logout
Facebook php SDK getLogoutUrl() problem

Because afaik you

  • Don't have to logout user from application which runs as facebook page/app
  • You shouldn't log out user on Facebook, if you are using oAuth to let him login to your website with his facebook account
Community
  • 1
  • 1
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244