更新时间:2023-08-25 14:06:16
您可以使用JS SDK订阅该类型的事件。查看 facebook javascript文档,您的方法正在寻找的是'auth.authResponseChange'
:
You can use the JS SDK to subscribe to events of that type. Take a look at the facebook javascript documentation, the method you are looking for is 'auth.authResponseChange'
:
FB.Event.subscribe('auth.authResponseChange', function(response) {
alert('The status of the session is: ' + response.status);
});