title: redirect user after share facebook
body: <p>i want to redirect users to a specific page after they share on facebook, i have found a good answer here at:</p>
  
  <p><a href="https://stackoverflow.com/questions/9368337/redirect-user-after-facebook-share-and-publish">redirect user after facebook share and publish</a></p>
  
  <p>here's the script</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  FB.init({appId: "YOUR_APP_ID", status: true, cookie: true});
    function share_me() {
      FB.ui({
        method: 'feed',
        app_id: 'YOUR_APP_ID',
        link: 'SHARE_URL',
        picture: 'PIC_URL',
        name: 'SHARE_NAME',
        caption: 'SHARE_CAPTION',
        description: 'SHARE_DESCRIPTION'
      },
      function(response){
        if(response &amp;&amp; response.post_id) {
          self.location.href = 'SUCCESS_URL'
        }
        else {
          self.location.href = 'CANCEL_URL'
        }
      });
    }
  &lt;/script&gt;";
    &lt;div onclick="share_me()"&gt;Share&lt;/div&gt;
  </code></pre>
  
  <p>but when i used the script ,there's no redirect at all, even if the user click "cancel"
  please help me with this as am searching for a method like this since 1 week!</p>