I have a share button in my web page which is for sharing the post on facebook. Now the popup opens up and when I click on post it does not close the pop-up. I have implemented this as mentioned in How do I close the popup after I post to facebook? .

I have used the below code for implementing the facebook feed

FB.ui({
    method: 'feed',
    link: shareLink,
    name: title,
    picture: picLink
}, function(response) {
    window.close();
});

I am in development stage and I'm using a local server(localhost) and I have added this in the app settings at 'OAuth Settings' > 'Valid OAuth redirect URIs'