更新时间:2023-09-05 09:59:46
在没有用户交互的情况下调用对话框时,出现了此错误.例如,当文档就绪"和"FB js-sdk加载事件"均被触发时.当我在同一页面上调用具有相同功能,参数的对话框,但在用户单击鼠标时做出反应-它起作用.
I've had this error, when calling dialog without user interaction. For example when both 'document ready' and 'FB js-sdk loaded events' are fired. When i called the dialog with same function, parameters, on same page but in reaction on user mouse click - it worked.
如果这与您所拥有的相似,则是解决方法:
If this is similiar to what you have, here is the solution:
FB.getLoginStatus(function(response) {
if (response.authResponse) {
//call dialog here
}
});