发送帖子后FB.ui feed弹出窗口未关闭后 [英] After FB.ui feed popup don't close after send post
问题描述
发送帖子后如何关闭FB.ui feed对话框.单击发送后,我看到白色弹出窗口.如何解决这个问题?同样在Chorme Browser控制台中,我看到 https://s-static.ak.facebook.com/connect/xd_arbiter/inP_iYjVh9g.js?version=41 无法加载资源:net :: ERR_INSECURE_RESPONSE
How close FB.ui feed dialog after send post. After click send i see white popup. How fix this problem? Also in Chorme Browser console i see https://s-static.ak.facebook.com/connect/xd_arbiter/inP_iYjVh9g.js?version=41 Failed to load resource: net::ERR_INSECURE_RESPONSE
推荐答案
对于FB.ui共享对话框,我已经在jQuery的一些帮助下实现了这一点:
For the FB.ui share dialog I've achieved this with a little help from jQuery:
$('#fb_dialog_loader_close').trigger('click');
我必须这样做,因为返回错误时对话框没有关闭.
I had to do it this way because the dialog didn't close when an error was returned.
很明显,只有在将对话框注入DOM中时,此方法才有效,但是您可以尝试使用 self.close
和后备功能.
Obviously that only works if the dialog is injected into the DOM, but you could try to use self.close
as well as fallback.
这篇关于发送帖子后FB.ui feed弹出窗口未关闭后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!