Redirect_uri does not work in webview

0

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'
    }
});

    
asked by anonymous 06.05.2018 / 01:45

0 answers