问题
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