Best practices with Facebook Connect?

I am building a web application with Django using Facebook authentication.

Now I am faced with the problem of logging out.

Do developers usually hide the default exit link?

This is a pretty difficult task with the logic for logging out when the user is connected to a facebook account that is still registered.


Any ideas?

+3
source share
2 answers

Logging into Facebook Connect is connected to a normal connection to the Facebook site. This means that if you go to Facebook Connect, you also go to facebook.com. And as soon as you log out of facebook.com, you also log out of Facebook Connect.

Facebook Connect . SDK JavaScript , :

FB.logout(function(response) {
  // user is now logged out
});

(http://developers.facebook.com/docs/reference/javascript/FB.logout)

, (?)

/

+2

FB.connect.logout( function(response) {
    // Handle response. 
});

. , , .

0

Source: https://habr.com/ru/post/1769531/


All Articles