I have a facebook share button setup with this event and url:
window.open('https://www.facebook.com/dialog/feed?app_id={{myid}}&display=popup&' +
'link={{my url}}&redirect_uri={{my url again}}', 'The title', 'resizable,height=400,width=550');
My issue is when I click cancel, instead of closing my open window, the user is directed to {{my url}} (the same url as {{my url again}}
What am I missing?
I ended up using:
if (window.location.hash == '#_=_') {
open(location, '_self').close();
}
Not the best solution, I don't think. The hash location is the url the Facebook cancel button directs from.