facebook share dialog redirecting instead of popping up?
<p>I have a dynamically generated facebook share button link being generated in JS, here is the url of the button:</p>

<p><a href="https://www.facebook.com/dialog/share?app_id=someAppId&amp;display=popup&amp;href=" rel="nofollow">https://www.facebook.com/dialog/share?app_id=someAppId&amp;display=popup&amp;href=</a>' + window.location.href;</p>

<p>That all works fine.</p>

<p>My issue is that the "display=popup" parameter in the links query string does not do as it says, instead it redirects to a sharing page when I expect it to popup.</p>

<p>What's more, when I submit the share, I do not get redirected back to my site.</p>

<p>I am new to the facebook sharing SDK and to be honest am getting quite stressed with it.</p>

<p>All I want is a simple share button (I made a custom styled button which is why I use a dynamically generated HREF) that doesn't mess with UX and works, surely it cannot be so complex to ask for?</p>

<p>So in short:</p>

<p>1) How do I make the share dialog popup instead of redirect? </p>

<p>2) If there is no way to stop it redirecting, how do I get it to redirect back once a share is submitted?</p>

<p>3) Is there a problem with the way I have done this?</p>

<p>4) What recommendations would you make if this were your project?</p>

<p>5) Is there simpler documentation or a tutorial series that you may know of for the facebook sharing SDK? Because the docs on the developer site are pretty unclear and hardcore in places, I find.</p>