Uncaught Error: Minified exception occurred [Facebook Login]

后端 未结 2 865
不知归路
不知归路 2021-01-03 15:06

I am trying to integrate my website with facebook login. I have followed all the documentation provided by Facebook (Quick Start). Here is my code

function i         


        
2条回答
  •  -上瘾入骨i
    2021-01-03 15:49

    There is a temporary solution for you, if you can have a separate link/button to logout. You can logout from this separate button using facebook api like:-

    FB.getLoginStatus(function(response) {
    if (response.status === 'connected') {
          // Logged into your app and Facebook.
    
          FB.logout(function(response) {
       //Person is now logged out    
    });   
        } 
        });
    

    And you can turn off auto logout link from facebook login button like this data-auto-logout-link="false":-

提交回复
热议问题