After sharing a link on Facebook, the webview does not redirect to the link defined in redirect_uri. When testing in the browser, it works perfectly.
FB.ui({
method: 'share',
mobile_iframe: true,
display: 'popup',
quote: 'Mensagem',
href: 'https://developers.facebook.com/docs/',
redirect_uri: 'URL'
}, function(response){
//console.log(response);
window.location.replace('URL');
if(response && response.post_id) {
self.location.href = 'URL'
}
else {
self.location.href = 'URL'
}
});