After FB.ui feed popup don't close after send post

被刻印的时光 ゝ 提交于 2020-01-06 13:58:32

问题


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


回答1:


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.

Obviously that only works if the dialog is injected into the DOM, but you could try to use self.close as well as fallback.



来源:https://stackoverflow.com/questions/27000726/after-fb-ui-feed-popup-dont-close-after-send-post

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!